From 38b63b06c80436b56a5be86ecd4d6db9d8776d7d Mon Sep 17 00:00:00 2001 From: nkumar-topcoder <33625707+nkumar-topcoder@users.noreply.github.com> Date: Wed, 10 Apr 2019 14:14:36 +0530 Subject: [PATCH 1/3] update to entrypoint [skip ci] --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f02615be..130b5c44 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,4 +26,5 @@ RUN npm install EXPOSE 3000 -CMD ["npm", "start"] +ENTRYPOINT ["npm","run"] +#CMD ["npm", "start"] From a05e11716f731cce4281668efd6a4935641b6bb6 Mon Sep 17 00:00:00 2001 From: nkumar-topcoder <33625707+nkumar-topcoder@users.noreply.github.com> Date: Wed, 10 Apr 2019 14:20:49 +0530 Subject: [PATCH 2/3] STS update with S3 var --- .circleci/config.yml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 724b71ba..8a152c00 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,21 +24,22 @@ deploy_steps: &deploy_steps - run: *install_awscli - run: *install_deploysuite - setup_remote_docker - - run: - name: "configuring aws environment" - command: | - ./awsconfiguration.sh $DEPLOY_ENV - - run: - name: "Building image for deploy" - command: | - source awsenvconf - ./build.sh $DEPLOY_ENV + - run: docker build -t tc-project-service:latest . - deploy: - name: "Deploying software" + name: "Running Masterscript - deploy tc-project-service " command: | + ./awsconfiguration.sh $DEPLOY_ENV source awsenvconf - ./deploy.sh $DEPLOY_ENV + ./buildenv.sh -e $DEPLOY_ENV -b ${VAR_ENV}-tc-project-service-deployvar + source buildenvvar + ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${VAR_ENV}-global-appvar,${VAR_ENV}-tc-project-service-appvar -i tc-project-service -p FARGATE + echo "======= Running Masterscript - deploy tc-project-service-consumers ===========" + if [ -e ${VAR_ENV}-tc-project-service-appvar.json ]; then sudo rm -vf ${VAR_ENV}-tc-project-service-appvar.json; fi + + ./buildenv.sh -e $DEPLOY_ENV -b ${VAR_ENV}-tc-project-service-consumers-deployvar + source buildenvvar + ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${VAR_ENV}-global-appvar,${VAR_ENV}-tc-project-service-appvar -i tc-project-service -p FARGATE jobs: test: @@ -71,18 +72,19 @@ jobs: root: . paths: - dist - - + deployProd: <<: *python_env environment: DEPLOY_ENV: "PROD" + VAR_ENV: "prod" steps: *deploy_steps deployDev: <<: *python_env environment: DEPLOY_ENV: "DEV" + VAR_ENV: "dev" steps: *deploy_steps workflows: @@ -96,7 +98,7 @@ workflows: - test filters: branches: - only: ['dev', 'feature/attachmentPermissions'] + only: ['dev', 'dev-sts'] - deployProd: context : org-global requires: From 35381b2bb4bfbacd2cb74eab33bc0c8a72bb0f8d Mon Sep 17 00:00:00 2001 From: nkumar-topcoder <33625707+nkumar-topcoder@users.noreply.github.com> Date: Thu, 11 Apr 2019 17:16:15 +0530 Subject: [PATCH 3/3] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8a152c00..b429c3ba 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,7 +11,7 @@ install_awscli: &install_awscli install_deploysuite: &install_deploysuite name: Installation of install_deploysuite. command: | - git clone --branch v1.3 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript + git clone --branch master https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript cp ./../buildscript/master_deploy.sh . cp ./../buildscript/buildenv.sh . cp ./../buildscript/awsconfiguration.sh .