Skip to content

Commit

Permalink
Document apptainer push
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomofiorin committed Oct 22, 2024
1 parent 3c08493 commit 7830857
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions devel-tools/containers/CentOS9-devel.def
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,17 @@ From: quay.io/centos/centos:stream9
install /tmp/spiff/spiff /usr/local/bin/
fi

# Download pre-built libTorch
rm -fr /opt/torch
curl -o /tmp/libtorch.zip https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.4.1%2Bcpu.zip
unzip /tmp/libtorch.zip -d /opt

# Install GitHub CLI
dnf -y config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
dnf -y install gh --repo gh-cli

# Download pre-built recent CMake (mostly for GROMACS)
rm -fr /opt/cmake
mkdir -p /opt/cmake
gh release download v3.30.5 --repo https://github.com/Kitware/CMake --clobber --pattern '*linux-x86_64.sh'
bash cmake-3.30.5-linux-x86_64.sh --skip-license --prefix=/opt/cmake
10 changes: 10 additions & 0 deletions devel-tools/containers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@ apptainer build container.sif container.def
```
apptainer run container.sif
```

4. (Optional) Push the container to the GitHub repository's "Packages"
section; currently we only have one package, called `devel-containers`,
which comes in different versions depending on the OS and software
contained. For example, to update the most commonly used container
version:
```
apptainer push CentOS9-devel oras://ghcr.io/colvars/devel-containers:CentOS9-devel
```
(note that the above requires having set up an access token for apptainer)

0 comments on commit 7830857

Please sign in to comment.