-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
54 lines (45 loc) · 1.42 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
FROM python:3.7-buster
RUN apt-get update && \
apt-get install -y --no-install-recommends \
software-properties-common \
gcc \
g++ \
cmake \
make \
git \
libboost-all-dev \
libblas-dev \
liblapack-dev \
libglu1 \
libxrender-dev \
libxcursor1 \
libxft2 \
libxinerama1 \
curl \
gfortran \
&& git clone https://github.com/wujian16/Cornell-MOE.git
#Set up environment for installing Cornell-MOE
ENV MOE_CC_PATH=/usr/bin/gcc \
MOE_CXX_PATH=/usr/bin/g++ \
MOE_CMAKE_OPTS="-D MOE_PYTHON_INCLUDE_DIR=/usr/include/python3.7 -D MOE_PYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0"
# Set up SimNIBS python package and compile Cornell-MOE
# Force emcee version as newer ones have issues w/linearly dependent walkers
# Set up Field Optimization package
# MOE/SimNIBS require specialized installs
RUN pip install --upgrade pip
COPY requirements.txt .
RUN cat requirements.txt | grep -v simnibs | grep -v MOE | xargs pip install
ARG SIMNIBS_VER="v3.2.5"
RUN pip install -f https://github.com/simnibs/simnibs/releases/tag/${SIMNIBS_VER} simnibs
RUN pip install future \
&& cd /Cornell-MOE \
&& pip install -r requirements.txt \
&& pip install .
RUN pip install https://github.com/skoch9/meshplot/archive/0.4.0.tar.gz
ARG COMMIT_SHA=""
ARG PIP_FLAGS
RUN git clone https://github.com/jerdra/fieldopt.git \
&& cd fieldopt \
&& git checkout ${COMMIT_SHA} \
&& pip install ${PIP_FLAGS} .[all]
ENTRYPOINT ["/bin/bash", "-c"]