Skip to content
Snippets Groups Projects
Commit 3d8da1ad authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon Committed by Wittenburg, William
Browse files

Removed unneeded ohpc packages and fixed ADIOS1 build

parent e68db671
No related branches found
No related tags found
1 merge request!253Finish image buildout
FROM centos:centos7.3.1611 FROM centos:centos7
RUN yum -y update && \ # Install extra repos
yum -y install \ RUN yum -y install epel-release https://github.com/openhpc/ohpc/releases/download/v1.3.GA/ohpc-release-1.3-1.el7.x86_64.rpm && \
bzip2-devel.x86_64 \ yum -y upgrade
curl \
gcc \
gcc-c++ \
gcc-gfortran \
git \
gmake \
hdf5-devel.x86_64 \
numpy.x86_64 \
python-devel.x86_64 \
https://github.com/openhpc/ohpc/releases/download/v1.3.GA/ohpc-release-1.3-1.el7.x86_64.rpm
RUN yum -y update && \ # Install core dev packages
yum -y install \ RUN yum -y install \
czmq-devel \ curl file \
mpi4py-openmpi.x86_64 \ gcc gcc-c++ gcc-gfortran \
ohpc-base \ git make autoconf automake libtool\
openmpi-gnu7-ohpc \ bzip2-devel zeromq-devel hdf5-devel \
phdf5-gnu7-openmpi-ohpc \ python-devel numpy
netcdf-gnu7-openmpi-ohpc
WORKDIR /home/adios2 # Install gcc7 OpenHPC packages
RUN yum -y install \
# Now get some packages from source and build them, starting with CMake lmod-ohpc gnu7-compilers-ohpc openmpi-gnu7-ohpc phdf5-gnu7-openmpi-ohpc \
python-numpy-gnu7-ohpc
RUN curl -O https://cmake.org/files/v3.6/cmake-3.6.0-Linux-x86_64.tar.gz && \
mkdir -p /opt/cmake && \
cd /opt/cmake && \
tar -zxvf /home/adios2/cmake-3.6.0-Linux-x86_64.tar.gz && \
rm -rf /home/adios2/cmake-3.6.0-Linux-x86_64.tar.gz && \
ln -s /opt/cmake/cmake-3.6.0-Linux-x86_64/bin/cmake /usr/local/bin/cmake && \
ln -s /opt/cmake/cmake-3.6.0-Linux-x86_64/bin/cpack /usr/local/bin/cpack && \
ln -s /opt/cmake/cmake-3.6.0-Linux-x86_64/bin/ctest /usr/local/bin/ctest && \
# Clone and build zfp master # Install the CMake binary
WORKDIR /opt/cmake/3.6.0
RUN curl -L https://cmake.org/files/v3.6/cmake-3.6.0-Linux-x86_64.tar.gz | \
tar --strip-components=1 -xzv
mkdir /opt/zfp && \ # ZFP
cd /opt/zfp && \ WORKDIR /opt/zfp
mkdir build install && \ RUN mkdir build install && \
git clone https://github.com/LLNL/zfp.git src && \ git clone https://github.com/LLNL/zfp.git src && \
cd build && \ cd build && \
cmake -DCMAKE_INSTALL_PREFIX:String=/opt/zfp/install ../src/ && \ /opt/cmake/3.6.0/bin/cmake \
make install && \ -DCMAKE_INSTALL_PREFIX=/opt/zfp/install \
../src && \
make -j8 install && \
cd ../ && \ cd ../ && \
rm -rf build src && \ rm -rf build src
# Clone ADIOS1 and build two versions # ADIOS1
mkdir -p /opt/adios1/1.12.0 && \ # Source setup
cd /opt/adios1/1.12.0 && \ WORKDIR /opt/adios1/1.12.0
curl -OL https://github.com/ornladios/ADIOS/archive/v1.12.0.tar.gz && \ RUN mkdir source && \
tar -zxvf v1.12.0.tar.gz && \ curl -L https://github.com/ornladios/ADIOS/archive/v1.12.0.tar.gz | \
tar -C source --strip-components=1 -xzv && \
cd source && ./autogen.sh
# GCC 4.8
RUN cd source && \
CFLAGS="-O2 -fPIC" CXXFLAGS="-O2 -fPIC" FCFLAGS="-O2 -fPIC" \
./configure --prefix=/opt/adios1/1.12.0/gnu48 --without-mpi && \
make -j8 install && \
make distclean
mkdir build-gnu-485 build-gnu-710 && \ # GCC 7
mkdir gnu-4.8.5 gnu-7.1.0 && \ RUN cd source && \
cd build-gnu-485 && \ . /etc/profile && \
module load gnu7 openmpi phdf5 && \
CFLAGS="-O2 -fPIC" CXXFLAGS="-O2 -fPIC" FCFLAGS="-O2 -fPIC" \
./configure --prefix=/opt/adios1/1.12.0/gnu7_openmpi && \
make -j8 install
cd /opt/adios1/1.12.0 && \ # Cleanup
rm -rf ADIOS-1.12.0 build-gnu-485 build-gnu-710 v1.12.0.tar.gz && \ RUN rm -rf /opt/adios1/1.12.0/source
# Make the directory where CircleCI can clone the ADIOS2 source # Make the directory where CircleCI can clone the ADIOS2 source
RUN mkdir -p /home/adios2/source
mkdir -p /home/adios2/hidecirclesource
WORKDIR /home/adios2 WORKDIR /home/adios2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment