From aadf883db0a4ee638d0417e5d2336cc231de4357 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Thu, 3 Dec 2020 17:58:47 +0000 Subject: Update deployment instructions with image building --- docs/DEPLOYMENT.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/DEPLOYMENT.md b/docs/DEPLOYMENT.md index 45b1509..a16669d 100644 --- a/docs/DEPLOYMENT.md +++ b/docs/DEPLOYMENT.md @@ -114,16 +114,20 @@ certificates. To set up Traefik, follow these steps: ## AnnotateChange -For AnnotateChange we have a [private repo on -DockerHub](https://hub.docker.com/r/gjjvdburg/annotatechange). Images are -built and pushed based on the [repository on -Github](https://github.com/alan-turing-institute/AnnotateChange). - Most of the configuration of the app is provided through environment variables, that are encoded in an environment file. An example of such a file is included in the Github repository. 1. Create a directory ``/home/deploy/production/annotatechange/`` +1. Clone the AnnotateChange repo to this directory and switch to it: + ``` + $ git clone https://github.com/alan-turing-institute/AnnotateChange /home/deploy/production/annotatechange + $ cd /home/deploy/production/annotatechange/ + ``` +1. Build the docker image: + ``` + $ docker build -t gjjvdburg/annotatechange . + ``` 1. Copy the ``.env.example`` file to this directory 1. Rename the file ``.env`` 1. Update the file for your configuration, at least you'll have to set the -- cgit v1.2.3