Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.4 KB

docker.md

File metadata and controls

47 lines (36 loc) · 1.4 KB

GRA Developer Documentation - Docker

The GRA is designed to function in Docker utilizing Microsoft-provided base images. If built using a Dockerfile in the project, Microsoft's docker images will be used for the basis of build and publish.

Sample build command

bash ./docker-build.bash

Sample run command(s)

Run a locally-built image

docker run -d -p 80:80 \
  --name gra
  --restart unless-stopped \
  -v /mnt/sharedstorage:/app/shared \
  gra:latest

Download and run an image from Docker Hub (simple)

docker run -d -p 80:80 \
  --name gra \
  --restart unless-stopped \
  -v /mnt/sharedstorage:/app/shared \
  mcld/gra:latest

Download and run an image from Docker Hub (complex)

This example is for a multi-instance environment and includes additional environment settings (including passing in database connection information via the environment rather than a configuration file).

docker run -d -p 80:80 \
  --name gra-instance1 \
  --restart unless-stopped \
  -e "ConnectionStrings:SqlServer=Server=dbserver;Database=gra;user id=grauser;password=supersecret;MultipleActiveResultSets=true"
  -e TZ=US/Arizona \
  -e GraInstanceName=gra-instance1 \
  -e "GraDeployDate=`date +'%x %H:%M:%S'`" \
  -v /mnt/sharedstorage:/app/shared \
  mcld/gra:latest