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