Skip to content

Commit

Permalink
removed runscript from singularity build
Browse files Browse the repository at this point in the history
  • Loading branch information
munishchouhan committed Sep 7, 2023
1 parent d8a4572 commit 4c832d1
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -788,21 +788,15 @@ class DockerHelperTest extends Specification {
Bootstrap: docker
From: {{spack_runner_image}}
stage: final
%files from build
/opt/spack-env /opt/spack-env
/opt/software /opt/software
/opt/._view /opt/._view
/opt/spack-env/z10_spack_environment.sh /.singularity.d/env/91-environment.sh
%post
mkdir -p /.singularity.d/env
cp -p /opt/spack-env/z10_spack_environment.sh /.singularity.d/env/91-environment.sh
echo "#!/usr/bin/env bash\\n\\nset -ef -o pipefail\\nsource /opt/spack-env/z10_spack_environment.sh\\nexec \\"\\$@\\"" \\
>/opt/spack-env/spack_docker_entrypoint.sh && chmod a+x /opt/spack-env/spack_docker_entrypoint.sh
USER hola
%runscript
/opt/spack-env/spack_docker_entrypoint.sh
'''.stripIndent()
}
}

0 comments on commit 4c832d1

Please sign in to comment.