-
Notifications
You must be signed in to change notification settings - Fork 0
/
singularity_rl_3_10
50 lines (44 loc) · 1.53 KB
/
singularity_rl_3_10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#For amd64 (Windows, Ubuntu): sudo singularity build singularity_rl_3_10.simg singularity_rl_3_10
# Execute with singularity exec ../../singularity_rl_3_10.simg python main_training.py
#header
Bootstrap: docker
From: nvidia/cuda:11.3.1-base-ubuntu20.04
#Sections
%help
Singularity image for the rl final project.
OS: Ubuntu 20.04
Cuda: 11.3.1
Python: 3.10.12
%labels
# information labels about the container saved in /.singularity.d/labels.json
Version v0.1
# overwrite True= to be able to build it multiple times
overwrite False
python.version 3.10.12
%environment
# set environment variables
# cf. https://stackoverflow.com/a/76170605, https://github.com/python-poetry/poetry/issues/5557
%post
export DEBIAN_FRONTEND=noninteractive
apt update -y
apt-get update
apt-get install -y build-essential
apt install -y software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt install -y python3.10 python3.10-dev python3.10-tk curl
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
ln -fs /usr/bin/python3.10 /usr/bin/python
apt install -y swig
apt-get install zip unzip
apt-get install git-all -y
python3.10 -m pip install gymnasium
python3.10 -m pip install git+https://github.com/martius-lab/laser-hockey-env.git
python3.10 -m pip install numpy
python3.10 -m pip install matplotlib
python3.10 -m pip install torchvision
python3.10 -m pip install twisted
python3.10 -m pip install imageio
python3.10 -m pip install imageio-ffmpeg
python3.10 -m pip install scipy
python3.10 -m pip install tensorboard
python3.10 -m pip install tqdm