-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
46 lines (37 loc) · 1.34 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
FROM aiidateam/aiida-core:2.3.1
# Set HOME, PATH and RASPA_DIR variables:
ENV PATH="/opt/RASPA2_installed/bin/:${PATH}"
ENV RASPA2_DIR=/opt/RASPA2_installed
ENV KILL_ALL_RPOCESSES_TIMEOUT=50
# Install necessary codes to build RASPA2.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && apt-get update && apt-get install -y --no-install-recommends \
automake \
libtool
# Download, compile and install RASPA into ~/code folder.
WORKDIR /opt/
RUN git clone --depth 1 --branch v2.0.47 https://github.com/iRASPA/RASPA2.git RASPA2
WORKDIR /opt/RASPA2
RUN rm -rf autom4te.cache
RUN mkdir m4
RUN aclocal
RUN autoreconf -i
RUN automake --add-missing
RUN autoconf
RUN ./configure --prefix=${RASPA2_DIR}
RUN make
RUN make install
WORKDIR /opt/
# Grab the raspa data files from the aiida-lsmo-codes repository
RUN git clone https://github.com/lsmo-epfl/aiida-lsmo-codes.git
RUN rsync -av /opt/aiida-lsmo-codes/data/raspa/ /opt/RASPA2_installed
RUN rm -rf aiida-lsmo-codes
# Install coveralls.
RUN pip install coveralls
# Copy and install aiida-raspa plugin.
COPY . aiida-raspa
RUN pip install -e aiida-raspa[pre-commit,tests,docs]
# Install the RASPA code to AiiDA.
COPY .docker/opt/add-codes.sh /opt/
COPY .docker/my_init.d/add-codes.sh /etc/my_init.d/50_add-codes.sh
# COPY the examples test script
COPY .github/workflows/run_examples.sh /home/aiida/run_examples.sh