diff --git a/CHANGELOG.md b/CHANGELOG.md index 54d59365..f07ff412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ - Upgrade NumPy from 1.20 to 1.21, Numba from 0.54 to 0.55, Rich from 6.2 to 11.0 [#152](https://github.com/litebird/litebird_sim/pull/152) +- Add the ability to create Singularity container from branches different than `master` [#163](https://github.com/litebird/litebird_sim/pull/163) + - Make MBS tests more robust against disappearing temporary directories [#162](https://github.com/litebird/litebird_sim/pull/162) - Remove NumPy's and Healpy's deprecation warnings [#158](https://github.com/litebird/litebird_sim/pull/158) diff --git a/singularity/Singularity.m4 b/singularity/Singularity.m4 index 02108a7e..b7cc82bc 100644 --- a/singularity/Singularity.m4 +++ b/singularity/Singularity.m4 @@ -76,7 +76,7 @@ shell. Examples: # reason why we run tests here is because AstroPy needs to # download a few files, and if we postpone this to %test the # filesystem will be read-only). - git clone https://github.com/litebird/litebird_sim.git /opt/litebird_sim + git clone -b BRANCH https://github.com/litebird/litebird_sim.git /opt/litebird_sim cd /opt/litebird_sim diff --git a/singularity/create-singularity-file.sh b/singularity/create-singularity-file.sh index 143322c0..03cc153f 100755 --- a/singularity/create-singularity-file.sh +++ b/singularity/create-singularity-file.sh @@ -2,15 +2,21 @@ readonly ubuntu_version="$1" readonly mpi_library="$2" +if [ "$3" == "" ]; then + readonly branch="master" +else + readonly branch="$3" +fi if [ "$mpi_library" == "" ]; then cat < Singularity