-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathubuntu
60 lines (57 loc) · 1.29 KB
/
ubuntu
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
51
52
53
54
55
56
57
58
59
60
ARG TAG=latest
FROM ubuntu:${TAG}
ARG MPI=openmpi
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get upgrade -y && \
if [ "${MPI}" = mpich ]; then \
apt-get install -y libmpich-dev; \
elif [ "${MPI}" = openmpi ]; then \
apt-get install -y openmpi-bin; \
fi
RUN apt-get install -y \
build-essential \
libboost-all-dev \
libfftw3-dev \
libgromacs-dev \
libhdf5-${MPI}-dev \
git \
cmake \
wget \
ipython3 \
clang \
libomp-dev \
llvm \
ccache \
doxygen \
sphinx-common \
python3-dev \
python3-h5py-mpi \
python3-matplotlib \
python3-mpi4py \
python3-numpy \
python3-pip \
python3-venv \
graphviz \
texlive-latex-base \
texlive-latex-extra \
texlive-latex-recommended \
ghostscript \
clang-format \
curl \
latexmk \
hdf5-tools \
sudo
RUN apt-get purge --autoremove -y
RUN rm -rf /var/lib/apt/lists/*
RUN . /etc/os-release && if [ "${VERSION_ID}" = "22.04" ]; then \
pip3 install pyh5md; \
else \
pip3 install --break-system-packages pyh5md; \
fi
RUN useradd -m -G sudo -u 1001 espressopp
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER espressopp
ENV PATH=/usr/lib/ccache:${PATH}${PATH:+:}
ENV H5PY_ALWAYS_USE_MPI=ON
WORKDIR /home/espressopp