-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
executable file
·36 lines (30 loc) · 1009 Bytes
/
Dockerfile
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
ARG BASE_IMG
FROM ${BASE_IMG}
# install linux packages + python
RUN sed '[email protected]@ubuntu.ethz.ch@' -i /etc/apt/sources.list \
&& apt-get update \
&& DEBIAN_FRONTEND="noninteractive" TZ="Europe/Zurich" apt-get --no-install-recommends -y install \
sudo htop tmux screen locate \
mc less vim git fish tcsh \
curl wget \
p7zip-full \
cmake \
python3 python3-dev python3-pip python-is-python3 \
hdf5-tools h5utils \
libgomp1 ninja-build \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# core
# + tools for sleeper
RUN pip --no-cache-dir install \
setuptools \
&& pip --no-cache-dir install --upgrade \
wheel virtualenv pip \
&& pip --no-cache-dir install --upgrade \
psutil py3nvml
RUN mkdir /opt/lab
COPY setup.sh setup_and_run_command.sh setup_and_wait.sh sleeper /opt/lab/
RUN ln -s /opt/lab/sleeper /usr/bin/sleeper
COPY setup_steps /opt/lab/setup_steps
# make sure the setup scripts are executable
RUN chmod -R a+x /opt/lab/
CMD ["/opt/lab/setup_and_wait.sh"]