Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Update base image #1

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# Build the C++ BMI example from a Mambaforge (Linux/Ubuntu) image.
FROM csdms/bmi:0.1.0
# Build the C++ BMI example from a condaforge/miniforge3 (Linux/Ubuntu) base.
FROM csdms/bmi:0.2.1

LABEL author="Mark Piper"
LABEL email="[email protected]"
LABEL org.opencontainers.image.authors="Mark Piper <[email protected]>"
LABEL org.opencontainers.image.url="https://hub.docker.com/r/csdms/bmi-example-cxx"
LABEL org.opencontainers.image.source="https://github.com/csdms/bmi-example-cxx-docker"
LABEL org.opencontainers.image.vendor="CSDMS"

ENV base_url=https://github.com/csdms
ENV package=bmi-example-cxx
ENV version="2.1.2"
ENV prefix=/opt/${package}
ENV project=bmi-example-cxx
ENV version="2.1.3"
ENV prefix=/opt/${project}

RUN git clone --branch v${version} ${base_url}/${package} ${prefix}
RUN git clone --branch v${version} ${base_url}/${project} ${prefix}
WORKDIR ${prefix}/_build
RUN cmake .. -DCMAKE_INSTALL_PREFIX=${CONDA_DIR} && \
make && \
make test && \
make install
make install && \
make clean

WORKDIR /opt
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ docker build --tag bmi-example-cxx .
```
The image is based on the [csdms/bmi](https://hub.docker.com/r/csdms/bmi) image.
The OS is Linux/Ubuntu.
`conda` and `mamba` are installed in `CONDA_DIR=/opt/conda`,
`conda` is installed in `CONDA_DIR=/opt/conda`,
and the *base* environment is activated.
The C++ BMI specification and example, including the `run_bmiheatc` executable, are installed into it.
The C++ BMI mapping and example, including the `run_bmiheatcxx` executable, are installed into it.

## Run a container

Expand Down