forked from zadorlab/pynta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
72 lines (52 loc) · 1.81 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
72
# Docker environment for ubuntu, python3.6
#
# Usage:
# * build the image:
# $ docker build -t pynta .
# * start the image:
# docker run -it pynta
# Latest version of ubuntu
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
# Install system packages
RUN apt-get update && \
apt-get install -y git openmpi-bin libopenmpi-dev && \
apt-get install -y wget cmake meson libopenblas-dev
# Install python
RUN apt-get install -y python3.6 python3-pip
# Install Python packages
RUN pip3 install --upgrade pip && \
python3 -m pip install --upgrade pip && \
python3 -m pip install flake8 pytest && \
python3 -m pip install numpy scipy cffi
WORKDIR /build
# Install xtb-python
RUN git clone https://github.com/grimme-lab/xtb-python.git && \
cd xtb-python %% \
git submodule update --init %% \
meson setup build --prefix=$PWD --libdir=xtb/xtb --buildtype release --optimization 2 -Dla_backend=openblas %% \
ninja -C build install && \
pip install --user -e .
# Install PostgreSQL
RUN wget https://sbp.enterprisedb.com/getfile.jsp?fileid=1257417&_ga=2.119848136.1712599154.1611463162-349055021.1611463162 && \
wait && \
mv 'getfile.jsp?fileid=1257417' postgresql.tar.gz && \
tar -xvzf postgresql.tar.gz && \
rm postgresql.tar.gz && \
echo 'export PATH=./pgsql/bin:$PATH' >> ~/.bashrc
# Install Balsam
RUN git clone https://github.com/balsam-alcf/balsam.git && \
cd balsam && \
python3 setup.py install
# RUN git clone https://github.com/zadorlab/sella.git &&\
# cd /build/sella && \
# git reset --hard 463e0556089f6af3385bed4aa7b49ee040cd19d1 && \
# python3 setup.py install
# Set pynta code path
ENV CODE_DIR /build/pynta
# Copy pynta source files
COPY . $CODE_DIR
# Install pynta
RUN cd $CODE_DIR && \
python3 setup.py install
# RUN mkdir -p $CODE_DIR