Skip to content
Snippets Groups Projects
Commit 65a6f059 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Now also dynamically configure singularity definition for consistency

parent 108aed5b
No related branches found
No related tags found
1 merge request!16New feature version
...@@ -21,10 +21,8 @@ default: ...@@ -21,10 +21,8 @@ default:
- | - |
if [ -f .ci-env/release ]; then if [ -f .ci-env/release ]; then
export BRANCH='release' export BRANCH='release'
export SINGULARITY_DEF='eic-latest.def'
elif [ -f .ci-env/develop ]; then elif [ -f .ci-env/develop ]; then
export BRANCH='develop' export BRANCH='develop'
export SINGULARITY_DEF='eic-unstable.def'
else export BRANCH='UNKNOWN' else export BRANCH='UNKNOWN'
fi fi
- | - |
...@@ -91,6 +89,7 @@ builder: ...@@ -91,6 +89,7 @@ builder:
- cd containers/builder - cd containers/builder
- head Dockerfile - head Dockerfile
- make login - make login
- echo "Creating builder image for ${BUILDER_TARGET}"
- make ${BUILDER_TARGET} - make ${BUILDER_TARGET}
config:stable: config:stable:
...@@ -142,7 +141,7 @@ release:singularity: ...@@ -142,7 +141,7 @@ release:singularity:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH != "develop"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH != "develop"'
when: manual when: manual
script: script:
- cp containers/release/${SINGULARITY_DEF} eic.def - cp config/eic.def eic.def
- /bin/bash .gitlabci/setup.sh - /bin/bash .gitlabci/setup.sh
- /bin/bash .gitlabci/build.sh eic.def - /bin/bash .gitlabci/build.sh eic.def
- mkdir -p build - mkdir -p build
......
...@@ -24,3 +24,8 @@ grep export config/spack-env.sh | \ ...@@ -24,3 +24,8 @@ grep export config/spack-env.sh | \
sed '/^@ENV@/r config/eic-env.sh' containers/release/Dockerfile.in | \ sed '/^@ENV@/r config/eic-env.sh' containers/release/Dockerfile.in | \
sed '/^@ENV@/d' | \ sed '/^@ENV@/d' | \
sed "s/@TAG@/$TAG/" > config/Dockerfile sed "s/@TAG@/$TAG/" > config/Dockerfile
## And release singularity definition
sed '/^@ENV@/r config/eic-env.sh' containers/release/eic.def.in | \
sed '/^@ENV@/d' | \
sed "s/@TAG@/$TAG/" > config/eic.def
Bootstrap: docker
From: eicweb.phy.anl.gov:4567/containers/eic_container/eic:unstable
%help
EIC software container.
Tools:
- eic_shell : Bash shell in this container
- root : Root shell in the container
- ipython : Python shell in the container
%labels
Maintainer "Whitney Armstrong, Sylvester Joosten"
Version v2.x
%post -c /bin/bash
echo " -------------------------------------------------"
echo " ===> Image setup complete"
echo " -------------------------------------------------"
Bootstrap: docker Bootstrap: docker
From: eicweb.phy.anl.gov:4567/containers/eic_container/eic:latest From: eicweb.phy.anl.gov:4567/containers/eic_container/eic:@TAG@
%help %help
EIC software container. EIC software container.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment