Skip to content

Commit

Permalink
Updating dockerfiles in prep for 0.926 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew W. Steiner committed Oct 6, 2021
1 parent c245604 commit 75a09bc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
6 changes: 0 additions & 6 deletions docker/opensuse_leap
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@ RUN acol -v
WORKDIR /opt/o2scl-0.926
RUN make o2scl-test
RUN make o2scl-examples






4 changes: 2 additions & 2 deletions docker/opensuse_leap_dev
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM opensuse/leap
MAINTAINER Andrew W. Steiner ([email protected])

# The installation doesn't succeed, possibly because it can't find the
# dvipng package.
# The installation doesn't succeed in the o2sclpy section,
# possibly because it can't find the dvipng package?

# To fix tzdata asking for a timezone during installation
# can set up later using sudo dpkg-reconfigure tzdata I think.
Expand Down
22 changes: 13 additions & 9 deletions docker/ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,28 @@ MAINTAINER Andrew W. Steiner ([email protected])
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get -y update
RUN apt-get -y install g++ make libgsl-dev
RUN apt-get -y install libhdf5-dev libncurses-dev libreadline-dev curl
RUN apt-get -y install libboost-all-dev curl tar gzip libeigen3-dev
# compiler, make, gsl, and utilities
RUN apt-get -y install g++ make libgsl-dev curl tar gzip
# HDF5, ncurses, and readline
RUN apt-get -y install libhdf5-dev libncurses-dev libreadline-dev
# Boost and Eigen
RUN apt-get -y install libboost-all-dev libeigen3-dev
# Armadillo and dependencies
RUN apt-get -y install cmake libopenblas-dev liblapack-dev libarpack2-dev
RUN apt-get -y install libsuperlu-dev libarmadillo-dev
RUN apt-get -y install libsuperlu-dev libarmadillo-dev libfftw3-dev

# Now install o2scl
WORKDIR /opt
RUN curl -L https://github.com/awsteiner/o2scl/releases/download/v0.925/o2scl-0.925.tar.gz --output o2scl-0.925.tar.gz
RUN tar xvzf o2scl-0.925.tar.gz
WORKDIR /opt/o2scl-0.925
RUN LDFLAGS="-larmadillo -llapack -lblas -lncurses" CXXFLAGS="-O3 -DO2SCL_UBUNTU_HDF5 -DO2SCL_HDF5_PRE_1_12 -DO2SCL_HDF5_COMP -DO2SCL_LD_TYPES -DO2SCL_NEW_BOOST_INTEGRATION -I/usr/include" ./configure --enable-eigen --enable-armadillo --enable-openmp
RUN curl -L https://github.com/awsteiner/o2scl/releases/download/v0.926/o2scl-0.926.tar.gz --output o2scl-0.926.tar.gz
RUN tar xvzf o2scl-0.926.tar.gz
WORKDIR /opt/o2scl-0.926
RUN LDFLAGS="-larmadillo -llapack -lblas -lncurses" CXXFLAGS="-O3 -DO2SCL_UBUNTU_HDF5 -DO2SCL_HDF5_PRE_1_12 -DO2SCL_REGEX -DO2SCL_HDF5_COMP -DO2SCL_LD_TYPES -DO2SCL_NEW_BOOST_INTEGRATION -I/usr/include" ./configure --enable-eigen --enable-armadillo --enable-openmp --enable-fftw
RUN make
RUN make install
WORKDIR /
ENV LD_LIBRARY_PATH /usr/local/lib
RUN acol -v
WORKDIR /opt/o2scl-0.925
WORKDIR /opt/o2scl-0.926
RUN make o2scl-test
RUN make o2scl-examples

Expand Down
3 changes: 1 addition & 2 deletions docker/ubuntu_dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ MAINTAINER Andrew W. Steiner ([email protected])
# 9/29/21: This curently fails, because of an openmp linking error on
# o2graph. Need to fix.


# To fix tzdata asking for a timezone during installation
# can set up later using sudo dpkg-reconfigure tzdata I think.
ARG DEBIAN_FRONTEND=noninteractive
Expand All @@ -26,7 +25,7 @@ RUN git clone https://github.com/awsteiner/o2scl
WORKDIR /opt/o2scl
RUN mkdir m4
RUN autoreconf -i
RUN LDFLAGS="-larmadillo -llapack -lblas -lncurses" CXXFLAGS="-O3 -DO2SCL_UBUNTU_HDF5 -DO2SCL_HDF5_PRE_1_12 -DO2SCL_HDF5_COMP -DO2SCL_LD_TYPES -DO2SCL_NEW_BOOST_INTEGRATION -I/usr/include" ./configure --enable-eigen --enable-armadillo --enable-openmp --enable-fftw
RUN LDFLAGS="-larmadillo -llapack -lblas -lncurses" CXXFLAGS="-O3 -DO2SCL_UBUNTU_HDF5 -DO2SCL_HDF5_PRE_1_12 -DO2SCL_REGEX -DO2SCL_HDF5_COMP -DO2SCL_LD_TYPES -DO2SCL_NEW_BOOST_INTEGRATION -I/usr/include" ./configure --enable-eigen --enable-armadillo --enable-openmp --enable-fftw
RUN make blank-doc
RUN make
RUN make install
Expand Down

0 comments on commit 75a09bc

Please sign in to comment.