Skip to content

Commit

Permalink
fix(cli): use lower case image names for sessions in upper-case proje…
Browse files Browse the repository at this point in the history
…cts (#3666)
  • Loading branch information
Panaetius committed Dec 20, 2023
1 parent 7072080 commit ec1e282
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion renku/core/session/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,11 @@ def session_start(
if image_name is None:
tag = project_context.repository.head.commit.hexsha[:7]
repo_host = get_image_repository_host()
image_name = f"{project_name}:{tag}"
image_name = f"{project_name.lower()}:{tag}"
if repo_host:
image_name = f"{repo_host}/{image_name}"
if image_name.lower() != image_name:
raise errors.SessionStartError(f"Image name '{image_name}' cannot contain upper-case letters.")

force_build_image = provider_api.force_build_image(**kwargs)

Expand Down

0 comments on commit ec1e282

Please sign in to comment.