-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (35 loc) · 1.34 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM ubuntu:latest
RUN apt-get update \
&& apt-get install -y \
ca-certificates \
catch2 \
cmake \
g++ \
git \
libcli11-dev \
libhdf5-openmpi-dev \
librange-v3-dev \
lsb-release \
ninja-build \
nlohmann-json3-dev \
wget
RUN wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
&& apt-get install -y ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
&& apt-get update \
&& apt-get install -y \
libarrow-dev \
libparquet-dev
VOLUME /highfive
RUN git clone https://github.com/BlueBrain/HighFive /highfive/src \
&& cmake -B /highfive/build -S /highfive/src -DCMAKE_INSTALL_PREFIX=/highfive/install -DHIGHFIVE_UNIT_TESTS=OFF -DHIGHFIVE_EXAMPLES=OFF -DHIGHFIVE_BUILD_DOCS=OFF \
&& cmake --build /highfive/build \
&& cmake --install /highfive/build
ENV CMAKE_PREFIX_PATH=/highfive/install
ENV OMPI_ALLOW_RUN_AS_ROOT=1
ENV OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
VOLUME /workspace
COPY . /workspace/src
RUN cmake -GNinja -B /workspace/build -S /workspace/src -DCMAKE_CXX_COMPILER=/usr/bin/mpicxx \
&& cmake --build /workspace/build \
&& cmake --install /workspace/build \
&& ctest --test-dir /workspace/build --output-on-failure