Skip to content

Replace step-by-step PyNE will single dockerfile #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions pyne-apt-get

This file was deleted.

40 changes: 0 additions & 40 deletions pyne-deps

This file was deleted.

69 changes: 69 additions & 0 deletions pyne-full-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
FROM ubuntu:16.04

ENV HOME /root

RUN apt-get -y --force-yes update
RUN apt-get install -y --force-yes \
software-properties-common python-software-properties wget

# pyne specific dependencies
RUN apt-get install -y build-essential python-numpy python-scipy cython \
python-nose git cmake vim emacs gfortran libblas-dev \
liblapack-dev libhdf5-dev gfortran python-tables \
python-matplotlib python-jinja2 autoconf libtool

# 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

# Install PyNE
RUN cd $HOME/opt \
&& git clone https://github.com/pyne/pyne.git \
&& cd pyne \
&& python setup.py install --user -- -DMOAB_LIBRARY=$HOME/opt/moab/lib -DMOAB_INCLUDE_DIR=$HOME/opt/moab/include

RUN echo "export PATH=$HOME/.local/bin:\$PATH" >> ~/.bashrc \
&& echo "export LD_LIBRARY_PATH=$HOME/.local/lib:\$LD_LIBRARY_PATH" >> ~/.bashrc \
&& echo "alias build_pyne='python setup.py install --user -- -DMOAB_LIBRARY=\$HOME/opt/moab/lib -DMOAB_INCLUDE_DIR=\$HOME/opt/moab/include'" >> ~/.bashrc

ENV LD_LIBRARY_PATH $HOME/.local/lib:$LD_LIBRARY_PATH

RUN cd $HOME/opt/pyne && ./scripts/nuc_data_make \
&& cd tests \
&& . ./travis-run-tests.sh \
&& echo "PyNE build complete. PyNE can be rebuilt with the alias 'build_pyne' executed from $HOME/opt/pyne"
26 changes: 0 additions & 26 deletions pyne-install

This file was deleted.