# Copyright (c) 2015 Patrick Diehl
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

FROM fedora:29
MAINTAINER Patrick Diehl <patrickdiehl@lsu.edu>
# install dependencies
RUN dnf update -y
RUN dnf install -y \ 
cmake \
boost-build \
boost \
boost-devel \ 
hwloc-devel \
hwloc \
gcc-gfortran \
papi-devel \
gperftools-devel \ 
docbook-dtds \
docbook-style-xsl \ 
libsodium-devel \
doxygen \
boost-doc \ 
hdf5-devel \
fop \
boost-devel \ 
boost-openmpi-devel \ 
boost-mpich-devel \
git	\
gcc-c++ 

ENV CC gcc
ENV CXX g++

RUN git clone https://github.com/STEllAR-GROUP/hpx.git --depth=1

RUN mkdir build && cd build

RUN cmake .. -DHPX_WITH_MALLOC=system

RUN make -j 
