Skip to content

Inconsistency between Dockerfiles and singularity images #59

@fgypas

Description

@fgypas

When we pull a docker image with singularity that contains information such as:

# VARIABLES
ARG WORKDIR="/home/container/"
ARG USER="USER"
ARG GROUP="GROUP"
ENV PATH="${WORKDIR}:${PATH}"

# CREATE USER
RUN groupadd -r ${GROUP} && useradd --no-log-init -r -g ${GROUP} ${USER}

# SET ENVIRONMENT
WORKDIR ${WORKDIR}
RUN chown -R ${USER}:${GROUP} ${WORKDIR} && chmod 700 ${WORKDIR}
USER ${USER}

singularity cannot convert it properly to an image and it returns error like:

Singularity: action-suid (U=0,P=480)> Home directory is not owned by calling user: /tmp/repo/rnaseqpipeline/tests/test_integration_workflow

ERROR  : Home directory is not owned by calling user: /tmp/repo/rnaseqpipeline/tests/test_integration_workflow
Singularity: action-suid (U=0,P=480)> Retval = 255

Tested with singularity v2.6.1

How should we handle this?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is neededquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions