-
Notifications
You must be signed in to change notification settings - Fork 1
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 #2 from maouw:maouw/issue1
Return to Apptainer
- Loading branch information
Showing
4 changed files
with
48 additions
and
76 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Singularity Build | ||
on: | ||
push: | ||
# Edit the branches here if you want to change deploy behavior | ||
branches: | ||
- main | ||
- master | ||
tags: | ||
- release-* | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
name: Build Apptainer image | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Install Apptainer | ||
run: deb=$(curl -w "%{filename_effective}" -LO https://github.com/apptainer/apptainer/releases/download/v1.2.4/apptainer_1.2.4_amd64.deb) && sudo apt install -y "./$deb"; rm -f "$deb"; unset deb | ||
- name: Check out code for the container build | ||
uses: actions/checkout@v4 | ||
- name: Build Container | ||
run: | | ||
apptainer build container.sif Singularity | ||
tag=$(echo "${recipe/Singularity\./}") | ||
[ "$tag" == "Singularity" ] && tag=latest | ||
# Build the container and name by tag | ||
echo "Tag is $tag." | ||
echo "tag=$tag" >> $GITHUB_ENV | ||
- name: Login and Deploy Container | ||
run: | | ||
apptainer remote login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} oras://ghcr.io | ||
apptainer push container.sif oras://ghcr.io/${{ github.repository }}:${tag} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Bootstrap: docker | ||
From: mambaorg/micromamba:{{ MICROMAMBA_TAG }} | ||
|
||
%arguments | ||
MICROMAMBA_TAG=jammy-cuda-12.1.1 | ||
SLEAP_PYTHON_VERSION=3.7.12 | ||
SLEAP_VERSION=1.3.3 | ||
|
||
%environment | ||
export MAMBA_DOCKERFILE_ACTIVATE=1 | ||
|
||
%post | ||
micromamba install -y -n base python={{ SLEAP_PYTHON_VERSION }} -c conda-forge -c nvidia -c sleap -c anaconda sleap={{ SLEAP_VERSION }} | ||
|