Skip to content

Commit

Permalink
Merge pull request #267 from kids-first/feature/standard-deploy
Browse files Browse the repository at this point in the history
🔧 Updated to standard deploy
  • Loading branch information
alubneuski authored Sep 4, 2020
2 parents bb956ca + c7e09f9 commit f690674
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
19 changes: 16 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
@Library(value='kids-first/aws-infra-jenkins-shared-libraries', changelog=false) _
ecs_service_type_1 {
@Library(value="kids-first/aws-infra-jenkins-shared-libraries", changelog=false) _
ecs_service_type_1_standard {
projectName = "kf-api-release-coordinator"
agentLabel = "terraform-testing"
environments = "dev,qa,prd"
docker_image_type = "alpine"
entrypoint_command = "/app/bin/entrypoint.sh"
quick_deploy = "true"
internal_app = "false"
container_port = "80"
vcpu_container = "2048"
memory_container = "4096"
vcpu_task = "2048"
memory_task = "4096"
health_check_path = "/"
dependencies = "ecr"
friendly_dns_name = "release-coordinator"
additional_ssl_cert_domain_name = "*.kidsfirstdrc.org"
}
10 changes: 0 additions & 10 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
#!/bin/ash
source /app/bin/load_vault.sh

if [ -n $AUTH0_SECRET ]; then
echo "Load AUTH0 secrets from s3"
aws s3 cp $AUTH0_SECRET ./auth0_secrets.env
source ./auth0_secrets.env
export $(cut -d= -f1 ./auth0_secrets.env)
rm ./auth0_secrets.env
fi

if $WORKER ; then
echo "Is worker"
supervisord -c /etc/supervisor/conf.d/worker.conf
Expand Down

0 comments on commit f690674

Please sign in to comment.