-
Notifications
You must be signed in to change notification settings - Fork 2
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 #43 from coecms/update_payu_again
Move container build to github actions. Update payu again
- Loading branch information
Showing
8 changed files
with
80 additions
and
47 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] | ||
|
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 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
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
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
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