Skip to content

A Docker container for the ped-screen application.

Notifications You must be signed in to change notification settings

grundmeier/docker-pedscreen

 
 

Repository files navigation

docker-pedscreen

A Docker container for the ped-screen application.

Usage

Build

Export environment variables

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>

Build the image

$ docker build \
	--build-arg REPO_URI="https://$(GITHUB_ACCOUNT):$(GITHUB_TOKEN)@github.com/chop-dbhi/ped-screen" \
	--build-arg BRANCH=$(BRANCH) \
	--tag pedscreen:latest \
	.

Run

Create the environment file

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

Run container and display ped-screen's parameters

$ docker run --rm --env-file=.env pedscreen:latest

Run container and generate the extract

$ docker run --rm --env-file=.env pedscreen:latest --location_id ABCD --department_id 123456 --date_start 2019-03-31 --date_end 2019-03-31

Make

Use make to simplify the build/run process; the project contains a sample makefile.

Build the image

$ make build

Run container and create a terminal session

$ make tty

Run container and display ped-screen's parameters

$ make param

Run container and generate files

$ make run

References

About

A Docker container for the ped-screen application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 86.9%
  • Shell 7.6%
  • Dockerfile 5.5%