Skip to content

Issues using Docker image with singularity #2

@RDoerfel

Description

@RDoerfel

Hello,
unfortunately I have issues using the docker image. Using run, it can't find entripoint.py, and when using exec, there are issues sourcing the .bashrc script.

Here is what I do:

export SINGULARITY_TMPDIR=<path_to_directory_of_choice>

singularity pull docker mcc.sif docker://ghcr.io/wwu-mmll/mccqrnn_docker

singularity run \
                --cleanenv \
                --bind <my_input_dir>:/input \
                --bind <my_output_dir>:/output \
                <path_to_image>/mcc.sif

When running this, I get the following error:

/users/rubendorfel/.bashrc: line 30: /usr/local/etc/.profile: No such file or directory
python: can't open file '/users/rubendorfel/entrypoint.py': [Errno 2] No such file or directory

Alternatively I tried to set the home-directory manually and point towards the .bashrc script as it couldn't find this before.

singularity exec \
            --cleanenv \
            --bind /indirect/student/rubendorfel/brain-age-trt/3Party/mcc/input:/input \
            --bind /indirect/student/rubendorfel/brain-age-trt/3Party/mcc/input:/output \
            /indirect/proc_data1/brainage/src/singularity_utils/singularity-sif/mcc.sif \
            source /users/rubendorfel/.bashrc && python /mcc/entrypoint.py 

Still no succes here. I can execute python/mcc/entrypoint.py, but then the conda environment is not activated. when sourcing /users/rubendorfel/.bashrc it complains about not being able to find /usr/local/etc/.profile

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions