Skip to content
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

Add docker file with dependencies for Svalinn plugin #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
37 changes: 37 additions & 0 deletions plugin-deps-18.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM ubuntu:18.04

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't 18.04 build scripts need these lines?

ENV HOME /root
ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get -y update
RUN apt-get install -y software-properties-common sudo wget build-essential \
libhdf5-serial-dev libblas-dev liblapack-dev libarmadillo-dev \
git cmake g++ gfortran

RUN apt-get install -y libgl1-mesa-glx libglu1-mesa libxt6

RUN apt-get -y update

RUN \
mkdir -p ${HOME}/opt/moab && \
cd ${HOME}/opt/moab && \
git clone https://bitbucket.org/fathomteam/moab
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want the most recent master branch or to specify a version?


RUN \
mkdir -p ${HOME}/opt/moab/build && \
cd ${HOME}/opt/moab/build && \
cmake ../moab -DCMAKE_INSTALL_PREFIX=${HOME}/opt/moab -DENABLE_HDF5=ON -DBUILD_SHARED_LIBS=ON && \
make install -j 4

RUN \
mkdir -p ${HOME}/opt/dagmc && \
cd ${HOME}/opt/dagmc && \
git clone https://github.com/svalinn/DAGMC

RUN \
mkdir -p ${HOME}/opt/dagmc/build && \
cd ${HOME}/opt/dagmc/build && \
cmake ../DAGMC -DMOAB_DIR=${HOME}/opt/moab -DCMAKE_INSTALL_PREFIX=${HOME}/opt/dagmc \
-DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -DBUILD_TALLY=OFF && \
make install -j 4