A Docker container for the ped-screen application.
NOTE: this could be added to
.bashrc
or.profile
.
export GITHUB_ACCOUNT=<github account>
export GITHUB_TOKEN=<github personal-access token (PAT)>
export BRANCH=<github branch name>
$ docker build \
--build-arg REPO_URI="https://$(GITHUB_ACCOUNT):$(GITHUB_TOKEN)@github.com/chop-dbhi/ped-screen" \
--build-arg BRANCH=$(BRANCH) \
--tag pedscreen:latest \
.
This file contains the environment variables that are supplied to docker when the container is run.
- Copy
.env.sample
to.env
$ cp .env.sample .env
- Edit the file and supply the missing values
$ docker run --rm --env-file=.env pedscreen:latest
$ docker run --rm --env-file=.env pedscreen:latest --location_id ABCD --department_id 123456 --date_start 2019-03-31 --date_end 2019-03-31
Use make
to simplify the build/run process; the project contains a sample makefile
.
$ make build
$ make tty
$ make param
$ make run