You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I worked on making the Docker image up to date with UU-Hydro/PCR-GLOBWB_model.
This is the current state:
Dockerfile
# DockerFile for PCR-GLOB model. The ini-file should be mounted as config.ini,# the input data root directory should be mounted as /dataFROM alpine/git:latest as builder
LABEL maintainer="Bart Schilperoort <[email protected]>"WORKDIR /opt
RUN git clone https://github.com/UU-Hydro/PCR-GLOBWB_model.git
WORKDIR /opt/PCR-GLOBWB_model
# Pick the branch/tag:# RUN git checkout feature/arise_30sec_aqueduct_2022-04-14RUN git checkout v2.4.0_alpha
FROM mambaorg/micromamba:1.3.1
ENV HOME=/home/$MAMBA_USER
COPY --chown=$MAMBA_USER:$MAMBA_USER --from=builder /opt/PCR-GLOBWB_model/conda_env/pcrglobwb_py3_standard.yml $HOME/pcrglobwb_py3_standard.yml
COPY --chown=$MAMBA_USER:$MAMBA_USER --from=builder /opt/PCR-GLOBWB_model $HOME/PCR-GLOBWB_model
WORKDIR $HOME/
# Install PCR-GLOB python environmentRUN micromamba install -y \
-n base \
-c conda-forge python=3.10 \
--file pcrglobwb_py3_standard.yml
# Make sure the conda environment is activated for the remaining build# instructions below# (otherwise python will not be found)ARG MAMBA_DOCKERFILE_ACTIVATE=1
# Set VolumesVOLUME /config.ini
VOLUME /data
WORKDIR $HOME/PCR-GLOBWB_model/model
# gcc is required for Cython. We already have micromamba, so we can do:RUN micromamba install gcc -c conda-forge
# Install cython and compile the imagemean.pyx cython codeRUN pip install Cython
RUN python3 setup.py build_ext --inplace
# # Install GRPC4BMIRUN pip install grpc4bmi==0.4.0
# # Default command should be to run GRPC4BMI server# # Don't override micromamba's entrypoint as that activates conda!CMD run-bmi-server \
--path "/home/mambauser/PCR-GLOBWB_model/model" \
--name "bmiPcrglobwb.BmiPCRGlobWB" \
--bmi-version 0.2 \
--port 55555 --debug
I worked on making the Docker image up to date with UU-Hydro/PCR-GLOBWB_model.
This is the current state:
Dockerfile
To make this image work with eWaterCycle the BMI has to be updated on the UU-Hydro repository. Additionally, the following setting has to be changed UU-Hydro/PCR-GLOBWB_model@master...BSchilperoort:PCR-GLOBWB_model:master
The text was updated successfully, but these errors were encountered: