Expected Behavior
spython should ignore variables with USER in them (e.g. $NB_USER) and only replace lines starting with USER
Actual Behavior
USER joe is replaced with su - joe
Lines like
RUN chown -cR $NB_USER /path/ get replaced with
su - # chown -cR $NB_USER /path/
Steps to Reproduce
Create a docker file, and a variable $TEST_USER
Run spython -d recipe Dockerfile Singularity.def
Context
[provide more detailed introduction to the issue itself . This is for make a reproducible issue.]
- Operating System: CentOS 7 & Mac OS 13.4
- singularity version: n/a
- spython version: 0.0.79
- python version: 3.7.4 & 3.8.2
Failure Logs
recipes.zip
spython.log
Possible Fix
[ the suggest fixes or reasons for the bug]
Expected Behavior
spython should ignore variables with USER in them (e.g. $NB_USER) and only replace lines starting with USER
Actual Behavior
USER joeis replaced withsu - joeLines like
RUN chown -cR $NB_USER /path/get replaced withsu - # chown -cR $NB_USER /path/Steps to Reproduce
Create a docker file, and a variable $TEST_USER
Run
spython -d recipe Dockerfile Singularity.defContext
[provide more detailed introduction to the issue itself . This is for make a reproducible issue.]
Failure Logs
recipes.zip
spython.log
Possible Fix
[ the suggest fixes or reasons for the bug]