diff --git a/DESCRIPTION b/DESCRIPTION index 43defc4..ca548db 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -3,7 +3,7 @@ Title: Forecast Evaluation Dashboard Version: 7.0.0 Authors@R: c(person("Kate", "Harwood", role = "aut"), person("Chris", "Scott", role = "ctb"), - person("Jed", "Grabman", role = "ctb")), + person("Jed", "Grabman", role = "ctb"), person("Nat", "DeFries", email= "ndefries@andrew.cmu.edu", role = c("aut", "cre"))) Description: This app collects and scores COVID-19 forecasts submitted to the CDC, and displays the results in an RShiny dashboard. License: MIT License, Copyright (c) 2021 Delphi contributors diff --git a/Makefile b/Makefile index 31652d3..ef9469a 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,15 @@ PWD=$(shell pwd) S3_URL=https://forecast-eval.s3.us-east-2.amazonaws.com S3_BUCKET=s3://forecast-eval +# Change `imageTag` during `make` call via `make imageTag=` +# +# `imageTag` specifies the tag to be used for the production dashboard Docker +# image. If building from `main`, it should be `latest`. If building from +# `dev`, it should be `dev`. The default value used here is meant to prevent +# the actual `latest` and `dev` images in the image repository from being +# accidentally overwritten. +imageTag=local + build: build_dashboard # Build a docker image suitable for running the scoring pipeline @@ -66,10 +75,14 @@ build_dashboard_dev: pull_data start_dashboard: build_dashboard_dev docker run --rm -p 3838:80 ghcr.io/cmu-delphi/forecast-eval:latest -# Build a docker image for production use +# Build a docker image for production use. Currently this isn't used anywhere, +# but could be useful if we need to manually build a docker image for +# production. build_dashboard: pull_data docker build --no-cache=true --pull -t ghcr.io/cmu-delphi/forecast-eval:$(imageTag) -f devops/Dockerfile . -# Push a production docker image to the image repository +# Push a production docker image to the image repository. Currently this isn't +# used anywhere, but could be useful if we need to manually release a docker +# image for production. deploy_dashboard: build_dashboard docker push ghcr.io/cmu-delphi/forecast-eval:$(imageTag)