Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile script won't execute if experiment name is capitalized #302

Open
uwagura opened this issue Dec 23, 2024 · 0 comments
Open

Compile script won't execute if experiment name is capitalized #302

uwagura opened this issue Dec 23, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@uwagura
Copy link

uwagura commented Dec 23, 2024

Describe the bug
podman build -f Dockerfile -t experiment:target will fail if experiment is capitalized ( a possibly target as well, though I haven't tested this). It produces this error message:

Error: tag MOM6_SIS2_GENERIC_4P_compile_symm_yaml:prod: invalid reference format: repository name must be lowercase
Error: repository name must be lowercase
INFO:    Starting build...
FATAL:   While performing build: conveyor failed to get: while fetching image: initializing source docker-archive:MOM6_SIS2_GENERIC_4P_compile_symm_yaml-prod.tar: opening file 

To Reproduce
Create an experiment in your compile yaml with a capitalized experiment name and work through the fre work flow. When you run createContainer.sh, the you will get the following error

Expected behavior
Podman creates the container

Additional context
It seems like Docker/Podman has a rule against repo names /images/ tags with capital letters. I haven't spent too much time digging into when you can and cannot use capital letters, but this thread on the docker forums seems to have a little more info.

Since it looks the main issue is when you try to run podman build with a image name that contains capital letters, I think the easiest solution would just be changing image names to lowercase when writing the createContainer script.

@ilaflott ilaflott added bug Something isn't working help wanted Extra attention is needed labels Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants