You can use (and adapt) docker_recipe.py
to generate a Dockerfile. At first, you need to install hpccm
:
python3 -m pip install --upgrade hpccm --user
Then, you can execute following shell script:
hpccm --recipe docker_recipe.py --format docker > Dockerfile
A basic Dockerfile has already been generated.
As a next step, you need to build the Docker image using the previously generated Dockerfile:
docker build -t nseof .
This might take a while, since the full LaTeX distribution is also installed.
In order to run the Docker image as a container you need to execute the following command:
docker run \
-it \
--rm \
--gpus=all \
--privileged \
--cap-add=SYS_PTRACE \
--security-opt label=disable \
--security-opt seccomp=unconfined \
--security-opt apparmor=unconfined \
--ipc=host \
--network=host \
--ulimit memlock=-1 \
--ulimit stack=67108864 \
-u $(id -u):$(id -g) \
-v $(pwd):/work \
-w /work \
nseof \
/bin/bash
If you are using Windows, then you need to execute this command instead:
docker run \
-it \
--rm \
--gpus=all \
--privileged \
--cap-add=SYS_PTRACE \
--security-opt label=disable \
--security-opt seccomp=unconfined \
--security-opt apparmor=unconfined \
--ipc=host \
--network=host \
--ulimit memlock=-1 \
--ulimit stack=67108864 \
-v <your\work\directory>\:/work \
nseof \
/bin/bash