|
|
@ -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 |
|
|
|