Skip to content

Instantly share code, notes, and snippets.

@aws-joe
Created December 9, 2016 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aws-joe/889b2f2bf88b555c21532ed0d88fccd8 to your computer and use it in GitHub Desktop.
Save aws-joe/889b2f2bf88b555c21532ed0d88fccd8 to your computer and use it in GitHub Desktop.
system:
docker: true
queue: docker
environment:
'DOCKER_APP': 'solano-ecs-repo'
'DEPLOY_AWS_ECS': 'true'
'AWS_ECS_CLUSTER': 'solano-ecs-cluster'
'AWS_ECS_SERVICE': 'solano-ecs-service'
'AWS_ECS_TASK_DEFINITION': 'solano-family'
'AWS_ECS_TASK_NAME': 'solano-task-definition'
# For sensitive values, use `solano config:add repo <key> <value>` from the cli
# See: http://docs.solanolabs.com/Setup/setting-environment-variables/#via-config-variables
# 'DOCKER_USER': '<set-with-cli>'
# 'DOCKER_EMAIL': '<set-with-cli>'
# 'DOCKER_PASSWORD': '<set-with-cli>'
# 'AWS_ACCESS_KEY_ID': '<set-with-cli>'
# 'AWS_SECRET_ACCESS_KEY': '<set-with-cli>'
# 'AWS_DEFAULT_REGION': '<set-with-cli>'
timeout_hook: 900
hooks:
pre_setup: chmod -R 755 ./scripts
post_setup: ./scripts/solano-docker-ecr-build-push.sh
post_build: ./scripts/solano-docker-ecs-deploy.sh
php:
php_version: "5.6"
tests:
- 'echo "Done with test"'
- 'sudo docker run ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${DOCKER_APP}:${TDDIUM_SESSION_ID} /usr/bin/php /var/www/html/www/index.php'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment