From b8e49b90f776c021e7a7c0bc67ea0e3d4a91bf07 Mon Sep 17 00:00:00 2001 From: Maksym Komar Date: Sat, 13 Jun 2020 20:42:54 +0000 Subject: [PATCH] Add docker image name setting to awsdeploy.yml --- awsdeploy.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/awsdeploy.yml b/awsdeploy.yml index e052944f..8d9741e3 100644 --- a/awsdeploy.yml +++ b/awsdeploy.yml @@ -103,17 +103,21 @@ Resources: - !Ref FromEmail - |+ - - | - sudo docker pull doccano/doccano:latest + - sudo tee -a /env.list <<< DOCKER_IMAGE= + - !Ref DockerImageName + - |+ + - | set -a - | source /env.list - | set +a + - | + sudo docker pull ${DOCKER_IMAGE} - > sudo docker run -d --name doccano --env-file /env.list -p 80:8000 - doccano/doccano:latest + ${DOCKER_IMAGE} - > sudo docker exec doccano tools/create-admin.sh ${ADMIN} ${EMAIL} ${PASSWORD} @@ -295,6 +299,11 @@ Parameters: Description: The email used to send from singup messages Type: String AllowedPattern: '^[\x20-\x45]?[\w-\+]+(\.[\w]+)*@[\w-]+(\.[\w]+)*(\.[a-z]{2,})?$' + DockerImageName: + Default: doccano/doccano:latest + Description: The Docker image name + Type: String + AllowedPattern: '^[\w_-]+/[\w_-]+:[\w_-]+$' Outputs: PublicDNS: Value: !GetAtt