Skip to content

Commit

Permalink
fix sipnet model version
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed Nov 2, 2019
1 parent f3b5062 commit fb3dbdb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Expand Up @@ -260,7 +260,7 @@ services:

# PEcAn sipnet model runner
sipnet:
image: pecan/model-sipnet-136:${PECAN_VERSION:-latest}
image: pecan/model-sipnet-r136:${PECAN_VERSION:-latest}
restart: unless-stopped
networks:
- pecan
Expand Down
9 changes: 6 additions & 3 deletions models/sipnet/Dockerfile
@@ -1,14 +1,14 @@
# this needs to be at the top, what version are we building
ARG IMAGE_VERSION="latest"

# Some variables that can be used to set control the docker build
ARG MODEL_VERSION=git

# ----------------------------------------------------------------------
# BUILD SIPNET BINARY
# ----------------------------------------------------------------------
FROM debian:stretch as sipnet-binary

# Some variables that can be used to set control the docker build
ARG MODEL_VERSION=git

# install dependencies
RUN apt-get update \
&& apt-get install -y \
Expand Down Expand Up @@ -47,6 +47,9 @@ FROM pecan/models:${IMAGE_VERSION}
# SETUP FOR SPECIFIC SIPNET VERSION
# ----------------------------------------------------------------------

# Some variables that can be used to set control the docker build
ARG MODEL_VERSION=git

# Setup model_info file
COPY model_info.json /work/model.json
RUN sed -i -e "s/@VERSION@/${MODEL_VERSION}/g" \
Expand Down

0 comments on commit fb3dbdb

Please sign in to comment.