-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyne-deps
40 lines (35 loc) · 1.12 KB
/
pyne-deps
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
FROM gonuke/pyne-apt-get:latest
# need to put libhdf5.so on LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu
ENV LIBRARY_PATH /usr/lib/x86_64-linux-gnu
# make starting directory
RUN cd $HOME \
&& mkdir opt
# build MOAB
RUN cd $HOME/opt \
&& mkdir moab \
&& cd moab \
&& git clone https://bitbucket.org/fathomteam/moab \
&& cd moab \
&& git checkout -b Version4.9.1 origin/Version4.9.1 \
&& autoreconf -fi \
&& cd .. \
&& mkdir build \
&& cd build \
&& ../moab/configure --enable-shared --enable-dagmc --with-hdf5=/usr/lib/x86_64-linux-gnu/hdf5/serial --prefix=$HOME/opt/moab \
&& make \
&& make install \
&& cd .. \
&& rm -rf build moab
# put MOAB on the path
ENV LD_LIBRARY_PATH $HOME/opt/moab/lib:$LD_LIBRARY_PATH
ENV LIBRARY_PATH $HOME/opt/moab/lib:$LIBRARY_PATH
# build PyTAPS
RUN cd $HOME/opt \
&& wget https://pypi.python.org/packages/source/P/PyTAPS/PyTAPS-1.4.tar.gz \
&& tar zxvf PyTAPS-1.4.tar.gz \
&& rm PyTAPS-1.4.tar.gz \
&& cd PyTAPS-1.4/ \
&& python setup.py --iMesh-path=$HOME/opt/moab --without-iRel --without-iGeom install --user \
&& cd .. \
&& rm -rf PyTAPS-1.4