Make the CMD behave more like docker#80
Make the CMD behave more like docker#80andyneff wants to merge 1 commit intosingularityhub:v3.4.2from
Conversation
Signed-off-by: Andy Neff <andy@visionsystemsinc.com>
|
Just as another data point, when I ran # ENTRYPOINT and CMD - run ENTRYPOINT with CMD as default args
# override with user provided args
if [ $# -gt 0 ]; then
SINGULARITY_OCI_RUN="${OCI_ENTRYPOINT} ${CMDLINE_ARGS}"
else
SINGULARITY_OCI_RUN="${OCI_ENTRYPOINT} ${OCI_CMD}"
fiWhich agrees with my PR and docker's behavior |
|
@andyneff is correct:
|
|
However, is the assignment of Edit: Ok I understand, this is going in the other direction. |
|
@rgov that was a snippet from the other way to create singularity images from docker. I believe it has already properly quote escaped the string, and then I was just using that as evidence for this PR, saying this should do what |
The way the current script was written, if you have a when you do
singularity run myimage.sif foo barand the docker had a CMD defined, the singularityrunscriptwill runCMD foo barinstead offoo bar. It should only runCMDwhen no command args are specified, to matchdockerandsingularity build myimage.sif docker://myorg/myimagebehavior.If you accept this PR, what is the best way to get it into the other version branches? Do I need to create a PR to each branch version, or is that something the owners take care of?