forked from NOAA-OWP/ngen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CENTOS_NGEN_RUN.dockerfile
39 lines (26 loc) · 1.21 KB
/
CENTOS_NGEN_RUN.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
FROM rockylinux:8 as builder
RUN yum update -y \
&& yum install -y dnf-plugins-core \
# && yum -y config-manager --set-enabled powertools \
&& yum -y install epel-release \
&& yum repolist \
&& yum install -y tar git gcc-c++ gcc make cmake python38 python38-devel python38-numpy bzip2 udunits2-devel \
&& dnf clean all \
&& rm -rf /var/cache/yum
RUN curl -L -O https://boostorg.jfrog.io/artifactory/main/release/1.72.0/source/boost_1_72_0.tar.bz2 \
&& tar -xjf boost_1_72_0.tar.bz2 \
&& rm boost_1_72_0.tar.bz2
ENV BOOST_ROOT="/boost_1_72_0"
ENV CXX=/usr/bin/g++
# Note that this may need to be temporarily used during development instead of the COPY below, to prevent any issues
# cause by a local checkout being different than a fresh checkout (as is used in the Github Actions execution)
#RUN git clone https://github.com/NOAA-OWP/ngen.git
COPY . /ngen/
WORKDIR /ngen
RUN git submodule update --init --recursive -- test/googletest
RUN git submodule update --init --recursive -- extern/pybind11
WORKDIR /ngen
RUN cmake -B /ngen -S .
RUN cmake --build . --target ngen
WORKDIR /ngen/
CMD ./ngen data/catchment_data.geojson "" data/nexus_data.geojson "" data/example_realization_config.json