Browse Source

Add docker image name setting to awsdeploy.yml

pull/841/head
Maksym Komar 4 years ago
parent
commit
b8e49b90f7
1 changed files with 12 additions and 3 deletions
  1. 15
      awsdeploy.yml

15
awsdeploy.yml

@ -103,17 +103,21 @@ Resources:
- !Ref FromEmail - !Ref FromEmail
- |+ - |+
- |
sudo docker pull doccano/doccano:latest
- sudo tee -a /env.list <<< DOCKER_IMAGE=
- !Ref DockerImageName
- |+
- | - |
set -a set -a
- | - |
source /env.list source /env.list
- | - |
set +a set +a
- |
sudo docker pull ${DOCKER_IMAGE}
- > - >
sudo docker run -d --name doccano --env-file /env.list -p 80:8000 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} sudo docker exec doccano tools/create-admin.sh ${ADMIN} ${EMAIL}
${PASSWORD} ${PASSWORD}
@ -295,6 +299,11 @@ Parameters:
Description: The email used to send from singup messages Description: The email used to send from singup messages
Type: String Type: String
AllowedPattern: '^[\x20-\x45]?[\w-\+]+(\.[\w]+)*@[\w-]+(\.[\w]+)*(\.[a-z]{2,})?$' 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: Outputs:
PublicDNS: PublicDNS:
Value: !GetAtt Value: !GetAtt

Loading…
Cancel
Save