forked from coecms/cms-conda-singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from ACCESS-NRI/upstream_merge
Merge Upstream
- Loading branch information
Showing
13 changed files
with
350 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,24 @@ on: pull_request | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: quay.io/singularity/singularity:v3.11.4 | ||
options: --privileged | ||
steps: | ||
- name: Checkout repository | ||
### Latest at time of writing | ||
uses: actions/[email protected] | ||
- name: Check if container definition has changed | ||
id: changed-container-def | ||
uses: tj-actions/changed-files@v37 | ||
with: | ||
files_yaml: | | ||
containerdef: | ||
- container/container.def | ||
- name: Build container if definition has changed | ||
if: steps.changed-container-def.outputs.containerdef_any_changed == 'true' | ||
run: | | ||
sudo -E singularity build container/base.sif container/container.def | ||
- name: Sync repository to Gadi | ||
### Latest at time of writing | ||
uses: up9cloud/[email protected] | ||
|
@@ -38,7 +52,7 @@ jobs: | |
eval $( grep ADMIN_DIR $SCRIPT_DIR/install_config.sh ) | ||
eval $( grep JOB_LOG_DIR $SCRIPT_DIR/install_config.sh ) | ||
cd $JOB_LOG_DIR | ||
qsub -N build_conda -lncpus=1,mem=20GB,walltime=2:00:00,jobfs=50GB,storage=gdata/xp65 -v SCRIPT_DIR -P iq82 -q copyq -Wblock=true -Wumask=037 "${SCRIPT_DIR}"/build.sh | ||
qsub -N build_conda -lncpus=1,mem=20GB,walltime=2:00:00,jobfs=50GB,storage=gdata/xp65+gdata/hh5 -v SCRIPT_DIR -P iq82 -q copyq -Wblock=true -Wumask=037 "${SCRIPT_DIR}"/build.sh | ||
test: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
@@ -54,4 +68,4 @@ jobs: | |
eval $( grep ADMIN_DIR $SCRIPT_DIR/install_config.sh ) | ||
eval $( grep JOB_LOG_DIR $SCRIPT_DIR/install_config.sh ) | ||
cd $JOB_LOG_DIR | ||
qsub -N test_conda -lncpus=4,mem=20GB,walltime=0:20:00,jobfs=50GB,storage=gdata/xp65 -v SCRIPT_DIR -P iq82 -Wblock=true -Wumask=037 "${SCRIPT_DIR}"/test.sh | ||
qsub -N test_conda -lncpus=4,mem=20GB,walltime=0:20:00,jobfs=50GB,storage=gdata/xp65+gdata/hh5 -v SCRIPT_DIR -P iq82 -Wblock=true -Wumask=037 "${SCRIPT_DIR}"/test.sh |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,45 @@ | ||
%setup | ||
mkdir -p ${SINGULARITY_ROOTFS}/usr/bin | ||
ln -s usr/bin ${SINGULARITY_ROOTFS}/bin | ||
ln -s half-root/boot ${SINGULARITY_ROOTFS}/boot | ||
ln -s half-root/etc ${SINGULARITY_ROOTFS}/etc | ||
ln -s half-root/images ${SINGULARITY_ROOTFS}/images | ||
ln -s half-root/initrd ${SINGULARITY_ROOTFS}/initrd | ||
ln -s usr/lib ${SINGULARITY_ROOTFS}/lib | ||
ln -s usr/lib64 ${SINGULARITY_ROOTFS}/lib64 | ||
ln -s usr/sbin ${SINGULARITY_ROOTFS}/sbin | ||
|
||
mkdir -p ${SINGULARITY_ROOTFS}/opt | ||
ln -s ../half-root/opt/Modules ${SINGULARITY_ROOTFS}/opt/Modules | ||
ln -s ../half-root/opt/beegfs ${SINGULARITY_ROOTFS}/opt/beegfs | ||
ln -s ../half-root/opt/bin ${SINGULARITY_ROOTFS}/opt/bin | ||
ln -s ../half-root/opt/gdrcopy ${SINGULARITY_ROOTFS}/opt/gdrcopy | ||
ln -s ../half-root/opt/intel ${SINGULARITY_ROOTFS}/opt/intel | ||
ln -s ../half-root/opt/knem-1.1.4.90mlnx1 ${SINGULARITY_ROOTFS}/opt/knem-1.1.4.90mlnx1 | ||
ln -s ../half-root/opt/mellanox ${SINGULARITY_ROOTFS}/opt/mellanox | ||
ln -s ../half-root/opt/pbs ${SINGULARITY_ROOTFS}/opt/pbs | ||
ln -s ../half-root/opt/rash ${SINGULARITY_ROOTFS}/opt/rash | ||
ln -s ../half-root/opt/rh ${SINGULARITY_ROOTFS}/opt/rh | ||
|
||
### Mount points for various bits of the image | ||
mkdir -p ${SINGULARITY_ROOTFS}/etc | ||
mkdir -p ${SINGULARITY_ROOTFS}/half-root | ||
mkdir -p ${SINGULARITY_ROOTFS}/local | ||
mkdir -p ${SINGULARITY_ROOTFS}/ram | ||
mkdir -p ${SINGULARITY_ROOTFS}/run | ||
mkdir -p ${SINGULARITY_ROOTFS}/system | ||
mkdir -p ${SINGULARITY_ROOTFS}/usr | ||
|
||
### Mount points for service sockets | ||
mkdir -p ${SINGULARITY_ROOTFS}/var/lib/sss | ||
mkdir -p ${SINGULARITY_ROOTFS}/var/run/munge | ||
|
||
%runscript | ||
Bootstrap: scratch | ||
|
||
%setup | ||
mkdir -p ${SINGULARITY_ROOTFS}/usr/bin | ||
ln -s usr/bin ${SINGULARITY_ROOTFS}/bin | ||
ln -s half-root/boot ${SINGULARITY_ROOTFS}/boot | ||
ln -s half-root/etc ${SINGULARITY_ROOTFS}/etc | ||
ln -s half-root/images ${SINGULARITY_ROOTFS}/images | ||
ln -s half-root/initrd ${SINGULARITY_ROOTFS}/initrd | ||
ln -s usr/lib ${SINGULARITY_ROOTFS}/lib | ||
ln -s usr/lib64 ${SINGULARITY_ROOTFS}/lib64 | ||
ln -s usr/sbin ${SINGULARITY_ROOTFS}/sbin | ||
|
||
mkdir -p ${SINGULARITY_ROOTFS}/opt | ||
ln -s ../half-root/opt/Modules ${SINGULARITY_ROOTFS}/opt/Modules | ||
ln -s ../half-root/opt/beegfs ${SINGULARITY_ROOTFS}/opt/beegfs | ||
ln -s ../half-root/opt/bin ${SINGULARITY_ROOTFS}/opt/bin | ||
ln -s ../half-root/opt/gdrcopy ${SINGULARITY_ROOTFS}/opt/gdrcopy | ||
ln -s ../half-root/opt/intel ${SINGULARITY_ROOTFS}/opt/intel | ||
ln -s ../half-root/opt/knem-1.1.4.90mlnx1 ${SINGULARITY_ROOTFS}/opt/knem-1.1.4.90mlnx1 | ||
ln -s ../half-root/opt/mellanox ${SINGULARITY_ROOTFS}/opt/mellanox | ||
ln -s ../half-root/opt/pbs ${SINGULARITY_ROOTFS}/opt/pbs | ||
ln -s ../half-root/opt/rash ${SINGULARITY_ROOTFS}/opt/rash | ||
ln -s ../half-root/opt/rh ${SINGULARITY_ROOTFS}/opt/rh | ||
|
||
### Mount points for various bits of the image | ||
mkdir -p ${SINGULARITY_ROOTFS}/etc | ||
mkdir -p ${SINGULARITY_ROOTFS}/half-root | ||
mkdir -p ${SINGULARITY_ROOTFS}/local | ||
mkdir -p ${SINGULARITY_ROOTFS}/ram | ||
mkdir -p ${SINGULARITY_ROOTFS}/run | ||
mkdir -p ${SINGULARITY_ROOTFS}/system | ||
mkdir -p ${SINGULARITY_ROOTFS}/usr | ||
|
||
### Mount points for service sockets | ||
mkdir -p ${SINGULARITY_ROOTFS}/var/lib/sss | ||
mkdir -p ${SINGULARITY_ROOTFS}/var/run/munge | ||
|
||
mkdir -p ${SINGULARITY_ROOTFS}/opt/conda/analysis3-22.07 | ||
mkdir -p ${SINGULARITY_ROOTFS}/opt/conda/analysis3-22.10 | ||
mkdir -p ${SINGULARITY_ROOTFS}/opt/conda/analysis3-23.01 | ||
mkdir -p ${SINGULARITY_ROOTFS}/opt/conda/analysis3-23.04 | ||
|
||
%runscript | ||
/usr/bin/bash -l |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.