-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (25 loc) · 939 Bytes
/
Dockerfile
File metadata and controls
29 lines (25 loc) · 939 Bytes
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
# Build grpc4bmi from gRPC conda packages on a condaforge/miniforge3 base.
FROM csdms/bmi:0.3.0
LABEL org.opencontainers.image.authors="Mark Piper <mark.piper@colorado.edu>"
LABEL org.opencontainers.image.url="https://hub.docker.com/r/csdms/grpc4bmi"
LABEL org.opencontainers.image.source="https://github.com/csdms/grpc4bmi-docker"
LABEL org.opencontainers.image.vendor="CSDMS"
RUN conda install -y \
libgrpc \
libabseil \
"protobuf>=4,<5" \
libprotobuf \
&& conda clean --all -y
# See https://github.com/csdms/grpc4bmi-docker/issues/2
ENV base_url=https://github.com/csdms
ENV project=grpc4bmi
ENV version="0.6.0-csdms"
ENV prefix=/opt/${project}
RUN git clone --branch v${version} --depth 1 ${base_url}/${project} ${prefix}
WORKDIR ${prefix}/cpp/_build
RUN cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} -DCMAKE_CXX_STANDARD=17 && \
make && \
ctest -V && \
make install && \
make clean
WORKDIR /opt