Skip to content

Commit c39c6f5

Browse files
Container to build singularity images
1 parent 62b75dc commit c39c6f5

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/workflows/docker-build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,4 +945,33 @@ jobs:
945945
file: ./dockerfiles/alma9-g4.11.3
946946
push: true
947947
tags: ${{ steps.meta.outputs.tags }}
948+
labels: ${{ steps.meta.outputs.labels }}
949+
950+
951+
alma9-apptainer:
952+
name: Push Alma9 apptainer docker image to Docker Hub
953+
runs-on: ubuntu-latest
954+
steps:
955+
- name: Check out the repo
956+
uses: actions/checkout@v4
957+
958+
- name: Log in to Docker Hub
959+
uses: docker/login-action@v3
960+
with:
961+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
962+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
963+
964+
- name: Extract metadata (tags, labels) for Docker
965+
id: meta
966+
uses: docker/metadata-action@v5
967+
with:
968+
images: bdsim/alma9-apptainer
969+
970+
- name: Build and push Docker image
971+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
972+
with:
973+
context: .
974+
file: ./dockerfiles/alma9-apptainer
975+
push: true
976+
tags: ${{ steps.meta.outputs.tags }}
948977
labels: ${{ steps.meta.outputs.labels }}

dockerfiles/alma9-apptainer

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM almalinux:9
2+
3+
WORKDIR /tmp
4+
5+
RUN dnf update -y
6+
RUN dnf groupinstall -y "Development Tools"
7+
RUN dnf install -y wget git go gcc make libseccomp libseccomp-devel squashfs-tools cryptsetup python3
8+
9+
RUN export VER=1.4.2 && \
10+
wget https://github.com/apptainer/apptainer/releases/download/v${VER}/apptainer-${VER}.tar.gz && \
11+
tar zxf apptainer-${VER}.tar.gz && \
12+
cd apptainer-${VER} && \
13+
./mconfig --with-suid && \
14+
make -C builddir && \
15+
make -C builddir install

0 commit comments

Comments
 (0)