Skip to content

Commit 3d7a57f

Browse files
Merge pull request #220 from rynge/apptainer-fix
Use a local apptainer - the cvmfs one has shared lib deps
2 parents 0039efe + b2153c6 commit 3d7a57f

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/build-container.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ jobs:
5959
output_image: ${{ steps.custom-image-name.outputs.output_image }}
6060
timestamp: ${{ steps.custom-image-name.outputs.timestamp }}
6161

62+
63+
- name: Prepare Image
64+
# TODO: For all tests, GHA currently only supports amd64 runners. We will need
65+
# to re-enable tests on arm64 when ARM runners become available.
66+
if: ${{ matrix.arch == 'amd64' }}
67+
run: |
68+
sudo ./tests/setup_gha_image.sh
69+
6270
6371
- name: Prepare CVMFS
6472
# TODO: For all tests, GHA currently only supports amd64 runners. We will need

tests/setup_gha_image.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash -x
2+
3+
function install_apptainer {
4+
# https://apptainer.org/docs/admin/main/installation.html#install-ubuntu-packages
5+
apt -y update
6+
apt install -y software-properties-common
7+
add-apt-repository -y ppa:apptainer/ppa
8+
apt -y update
9+
apt install -y apptainer
10+
}
11+
12+
install_apptainer

tests/test_inside_gha.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash -x
22
# shellcheck disable=SC2086
33

4-
APPTAINER_BIN=/cvmfs/oasis.opensciencegrid.org/mis/apptainer/bin/apptainer
4+
APPTAINER_BIN=/usr/bin/apptainer
55
OSP_TOKEN_PATH=/tmp/token
66
CONDOR_LOGDIR=/pilot/log
77
COMMON_APPTAINER_EXEC_ARGS="-B /cvmfs -B /dev/fuse -c -i"

0 commit comments

Comments
 (0)