FFFF AMICI/container at main · AMICI-dev/AMICI · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Using AMICI inside containers

AMICI docker images are regularly published to https://hub.docker.com/r/dweindl/amici.

Docker / Podman

The commands below are for use with Docker. When using Podman, just replace docker by podman.

Create an image

In the AMICI base directory run:

git archive -o container/amici.tar.gz --format=tar.gz HEAD
cd container && docker build -t $USER/amici:latest .

Note that this will include files from the last commit, but no uncommitted changes.

Pull published image

docker pull dweindl/amici:latest

Singularity / Apptainer

Create an image

In the AMICI base directory run:

# prepare amici files to be copied to the image
# Note that this will include files from the last commit, but no uncommitted
# changes.
git archive -o container/amici.tar.gz --format=tar.gz HEAD
# install spython if necessary
test -x "$(command -v spython)" || pip install spython
# convert Dockerfile to singularity/apptainer definition using spython
(cd container/ && spython recipe Dockerfile amici.def)
# build image
(cd container/ && singularity build amici.sif amici.def)

Pull published image

singularity pull docker://dweindl/amici:latest
0