Skip to content

spython replaces variables with USER in the name.. #158

@slash5toaster

Description

@slash5toaster

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions