-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
71 lines (57 loc) · 2.25 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM aiidateam/aiida-core-with-services AS build
ARG proxy
ARG workers
#ENV ABINIT_VERSION=9.10.3
#ENV LAMMPS=stable_2Aug2023
ENV WORKER=${workers}
USER root
LABEL org.opencontainers.image.authors="[email protected]"
RUN apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get autoclean && apt-get autoremove -y
RUN apt-get install wget git gcc gfortran g++ libblas-dev liblapack-dev libfftw3-dev \
cmake libxml2-dev libnetcdff-dev libxc-dev python3 python3-dev pip libzstd-dev \
libopenmpi-dev sudo -y
# Quantum ESPRESSO
WORKDIR /home/dft
RUN git clone https://gitlab.com/QEF/q-e.git
WORKDIR /home/dft/q-e
RUN ./configure --prefix=/usr/local --enable-parallel=yes
RUN make -j ${WORKER} all && make install
WORKDIR /home/dft
RUN rm -fr q-e
# ABINIT
#WORKDIR /home/dft
#RUN wget -qO- https://www.abinit.org/sites/default/files/packages/abinit-${ABINIT_VERSION}.tar.gz | tar xz
#WORKDIR /home/dft/abinit-${ABINIT_VERSION}
#RUN ./configure --prefix=/usr/local --with-libxml2 -enable-openmp --with-mpi
#RUN make -j ${WORKER} && make install
#WORKDIR /home/dft
#RUN rm -fr abinit-${ABINIT_VERSION}
# LAMMPS
#WORKDIR /home/md
#RUN wget -qO- https://github.com/lammps/lammps/archive/refs/tags/${LAMMPS}.tar.gz | tar xz
#WORKDIR /home/md/lammps-${LAMMPS}/build
#RUN pip install setuptools
#RUN cmake -C../cmake/presets/most.cmake -DBUILD_SHARED_LIBS=on -DLAMMPS_EXCEPTIONS=on \
# -DPKG_PYTHON=on -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_OMP=yes \
# -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_C_COMPILER=gcc-11 \
# -DCMAKE_Fortran_COMPILER=gfortran-11 ../cmake
#RUN make -j ${WORKER} && make install
#WORKDIR /home/md
# this produce an error
#RUN rm -fr ./lammps-${LAMMPS}
# update environment variable to get access to shared libraries
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"
# Wannier90-Workflows
WORKDIR /home/dft
RUN git clone https://github.com/aiidateam/aiida-wannier90-workflows.git
USER aiida
WORKDIR /home/dft/aiida-wannier90-workflows
RUN pip install -e .
# Quantum Espresso + TB2J + AiiDA_Shell
RUN pip install --user aiida-quantumespresso tb2j aiida_shell
# Jupyter
RUN conda install -y jupyter
WORKDIR /home/aiida
ARG proxy
RUN echo "export https_proxy=${proxy}" >> .bashrc
RUN echo "export http_proxy=${proxy}" >> .bashrc