Skip to content

[DO NOT MERGE] - This is a temporary deployment PR #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 259 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
259 commits
Select commit Hold shift + click to select a range
851f913
Code change for deployment
Gunasekar-K Mar 21, 2023
5f97e3c
Code change for deployment
Gunasekar-K Mar 21, 2023
c8bf15b
Code change for deployment
Gunasekar-K Mar 21, 2023
622855c
Code change for deployment
Gunasekar-K Mar 21, 2023
883ea01
Code change for deployment
Gunasekar-K Mar 21, 2023
a50700f
Code change for deployment
Gunasekar-K Mar 21, 2023
b588ea6
Code change for deployment
Gunasekar-K Mar 21, 2023
f0d9f31
Code change for deployment
Gunasekar-K Mar 21, 2023
0cece40
Code change for deployment
Gunasekar-K Mar 21, 2023
020471b
Code change for deployment
Gunasekar-K Mar 21, 2023
39b14f0
Code change for deployment
Gunasekar-K Mar 21, 2023
c8ac6dc
fix: build with reflections
rakibansary Mar 21, 2023
1ac33a9
fix: include reflections
rakibansary Mar 21, 2023
ba358ad
fix: use reflections
rakibansary Mar 21, 2023
1ade3d5
ci: deploy to dev
rakibansary Mar 21, 2023
e99c401
ci: deploy to dev
rakibansary Mar 21, 2023
bfc7439
cyclic issue
Gunasekar-K Mar 21, 2023
d1645a3
Merge branch 'dev' of https://github.com/topcoder-platform/domain-cha…
Gunasekar-K Mar 21, 2023
36b14b0
cyclic issue
Gunasekar-K Mar 21, 2023
0257d3e
cyclic issue
Gunasekar-K Mar 21, 2023
3b94274
fix: bump version
rakibansary Mar 21, 2023
7d46e95
feat(ial): beautify sql
rakibansary Mar 21, 2023
a760446
feat(ial): beautify sql
rakibansary Mar 21, 2023
e3a5618
prod changes [skip ci]
Gunasekar-K Mar 22, 2023
baf5bef
prod changes [skip ci]
Gunasekar-K Mar 22, 2023
0a2fc8b
prod changes [skip ci]
Gunasekar-K Mar 22, 2023
49a3507
fix: phases
rakibansary Mar 22, 2023
409fe04
fix: incorrect image tag
rakibansary Mar 22, 2023
6dc584c
ci: deploy to dev
rakibansary Mar 22, 2023
cf3855c
ci: deploy to dev
rakibansary Mar 22, 2023
bfaa776
ci: deploy to dev
rakibansary Mar 22, 2023
5bfcb3a
fix: deploy
rakibansary Mar 22, 2023
c531f03
fix: deploy
rakibansary Mar 22, 2023
1dec86f
ci: deploy to dev
rakibansary Mar 23, 2023
48f8446
ci: deploy to dev
rakibansary Mar 24, 2023
fde8fcc
Deploy fix/float-numbers-in-prizes
ThomasKranitsas Mar 24, 2023
31a01dc
fix: challenge update
rakibansary Mar 24, 2023
7b4d320
fix: deploy
rakibansary Mar 24, 2023
06f8d20
fix: deploy
rakibansary Mar 24, 2023
45d6c69
fix: update to topcoder-interface v0.0.40
rakibansary Mar 25, 2023
27fac5a
ci. deploy to dev
eisbilir Mar 25, 2023
35cb32a
ci: deploy to dev
eisbilir Mar 25, 2023
042809b
ci: update ACL tag. [skip ci]
eisbilir Mar 25, 2023
d8298d3
fix: challenge update
rakibansary Mar 25, 2023
7d843ec
ci: deploy to dev
eisbilir Mar 25, 2023
4877530
ci: deploy to dev
eisbilir Mar 25, 2023
611b613
ci: deploy to dev
eisbilir Mar 25, 2023
0aaba59
fix: f2f or crash
rakibansary Mar 25, 2023
cfb00f0
ci: deploy to dev
eisbilir Mar 26, 2023
23d6a28
feat: use env file for acl
eisbilir Mar 26, 2023
6fa8cdb
ci: deploy to dev
eisbilir Mar 26, 2023
edca03a
feat: copilot fee, group contest eligibility
rakibansary Mar 26, 2023
bd26fbd
fix: remove hardcoded value
rakibansary Mar 26, 2023
7f31899
fix: prize calculation
rakibansary Mar 26, 2023
d16ae97
fix: ba & scorecard
rakibansary Mar 26, 2023
fc1f76d
fix: challenge delete
rakibansary Mar 26, 2023
305aeb2
fix: prize undefined
rakibansary Mar 26, 2023
2d64ed7
ci: deploy to dev
rakibansary Mar 26, 2023
aa6d931
chore: deploy to dev
rakibansary Mar 27, 2023
7f35e54
fix: always use prod ECR images
rakibansary Mar 28, 2023
b149d1b
ci: deploy to dev (using prod ecr)
rakibansary Mar 29, 2023
3dcbe3d
ci: deploy constraint fix
rakibansary Mar 29, 2023
6e0a7cb
ci: choose ecr env based on pr
rakibansary Mar 29, 2023
dd8112d
ci: deploy to dev
eisbilir Mar 29, 2023
7abf0e2
ci: deploy to dev
eisbilir Mar 29, 2023
bd7d153
ci: deploy to dev
eisbilir Mar 30, 2023
7a6863f
ci: deploy to dev
eisbilir Apr 3, 2023
6d8ad39
ci: deploy to dev
eisbilir Apr 5, 2023
b75c7d5
ci: deploy to dev
eisbilir Apr 5, 2023
4b16434
ci: deploy to dev
rakibansary Apr 6, 2023
0061af3
fix: deploy to dev
rakibansary Apr 6, 2023
2586220
ci: deploy to dev
rakibansary Apr 6, 2023
0fc3468
ci: deploy to dev
rakibansary Apr 6, 2023
cf065f3
ci: deploy to dev
rakibansary Apr 6, 2023
1af6592
ci: deploy to dev
eisbilir Apr 6, 2023
92bbb30
ci: deploy to dev
eisbilir Apr 6, 2023
642c062
ci: deploy to dev
eisbilir Apr 6, 2023
108d0f0
ci: deploy to dev
eisbilir Apr 6, 2023
79e14a1
ci: deploy to dev
rakibansary Apr 7, 2023
6b72dd0
ci: deploy to dev
rakibansary Apr 7, 2023
56cbc00
ci: deploy to dev
rakibansary Apr 7, 2023
ba15ff0
ci: deploy to dev
rakibansary Apr 7, 2023
e5dd9df
ci: deploy to dev
eisbilir Apr 12, 2023
ceafb96
ci: deploy to dev
eisbilir Apr 12, 2023
a3fdb26
ci: deploy to dev
eisbilir Apr 12, 2023
00a7e6c
fix: loss of precesion when converting float to integer
rakibansary Apr 14, 2023
b096096
ci: deploy to dev
eisbilir Apr 14, 2023
9b8e81b
ci: deploy to dev
eisbilir Apr 14, 2023
cdf0fd3
ci: deploy to dev
eisbilir Apr 14, 2023
d9be08b
fix: let challenge-api handle sanitization
rakibansary May 1, 2023
a89206f
feat: use scheduler
rakibansary May 8, 2023
f84dff8
ci: deploy
rakibansary May 8, 2023
e9d4ecf
ci: update config to dynamically set ecr env
rakibansary May 12, 2023
7bd05da
ci: use v1.4.15 deploy scripts
rakibansary May 12, 2023
749b30f
ci: use updated convenience image
rakibansary May 12, 2023
1837a12
ci: fix deploy suite
rakibansary May 12, 2023
7a0e939
ci: fix deploy suite
rakibansary May 12, 2023
f4fd575
ci: deploy to dev
eisbilir May 15, 2023
2d4e2b3
ci: deploy advance phase endpoint correction
rakibansary May 16, 2023
a329dca
ci: deploy to dev
rakibansary May 16, 2023
9f70b1a
ci: deploy to dev
rakibansary May 18, 2023
f834fe8
ci: deploy to dev
rakibansary May 20, 2023
82f31bb
ci: deploy to dev
rakibansary May 20, 2023
11ffaf0
ci: deploy to dev
rakibansary May 21, 2023
ca6deb8
ci: deploy to dev
eisbilir Jun 6, 2023
dfb6bad
read-only-root-file-system-fix
Gunasekar-K Jun 7, 2023
1355a0a
Merge pull request #48 from topcoder-platform/read-only-root-file-sys…
Gunasekar-K Jun 7, 2023
3ff93d8
feat: add support for creation of marathon matches
rakibansary Jun 8, 2023
4ac87d1
ci: deploy
rakibansary Jun 8, 2023
0f20ff4
ci: deploy
rakibansary Jun 8, 2023
f759c6c
ci: deploy to dev
eisbilir Jun 10, 2023
8855b36
update ecs param
eisbilir Jun 10, 2023
db1796e
deploy to dev
eisbilir Jun 10, 2023
c22c651
deploy to dev
eisbilir Jun 10, 2023
43c89ca
ci: deploy
eisbilir Jun 13, 2023
c38575a
ci: deploy to dev
rakibansary Jun 17, 2023
f3db3d1
ci: deploy to dev
rakibansary Jun 19, 2023
5f7d788
ci: deploy to dev
rakibansary Jun 26, 2023
6b3523b
ci: deploy to dev
rakibansary Jul 3, 2023
de0ac58
ci: deploy to dev
rakibansary Jul 3, 2023
f7aeea0
ci: deploy to dev
rakibansary Jul 3, 2023
5fdff6f
ci: deploy to dev
rakibansary Jul 3, 2023
0f7137a
ci: deploy to dev
rakibansary Jul 3, 2023
292aabe
ci: deploy to dev
rakibansary Jul 3, 2023
044dfd9
ci: deploy to dev
rakibansary Jul 3, 2023
61f3270
ci: deploy to dev
rakibansary Jul 3, 2023
878699e
ci: deploy iac
rakibansary Jul 3, 2023
4a17d1f
fix: use constructed query
rakibansary Jul 3, 2023
9036e60
ci: deploy to dev
rakibansary Jul 3, 2023
53725a3
ci: deploy to dev
rakibansary Jul 10, 2023
a9792e2
fix: ap should only advance f2f challenge phases
rakibansary Aug 28, 2023
32c50a4
fix: use challenge scheduler only for f2fs
rakibansary Aug 30, 2023
f0eadb4
fix: PLAT-2461
rakibansary Sep 11, 2023
dc050dc
fix: PLAT-3271
rakibansary Sep 11, 2023
a5ca8fb
Update buildimage.sh
himaniraghav3 Sep 12, 2023
002f595
fix: PLAT-3271
Sep 12, 2023
cdd9c08
Update buildimage.sh
himaniraghav3 Sep 12, 2023
c197282
Update buildimage.sh
himaniraghav3 Sep 12, 2023
95ff947
Update buildimage.sh
himaniraghav3 Sep 12, 2023
8416894
ci: deploy to dev
eisbilir Sep 21, 2023
8314c09
deploy to dev
eisbilir Sep 22, 2023
756d9f6
deploy to dev
eisbilir Sep 22, 2023
de33d1b
Update buildimage.sh
eisbilir Sep 22, 2023
6ed01c2
deploy to dev
eisbilir Sep 22, 2023
21ee565
deploy to dev
eisbilir Sep 22, 2023
5d73db2
Update buildimage.sh
eisbilir Sep 22, 2023
7848bb5
fix: save markup
rakibansary Sep 23, 2023
c2627df
Update buildimage.sh
eisbilir Sep 23, 2023
85955df
fix: correctly save markup
rakibansary Sep 23, 2023
446f8dc
Update buildimage.sh
himaniraghav3 Sep 25, 2023
0c8e8ac
Update buildimage.sh
eisbilir Sep 25, 2023
466de4f
deploy to dev
eisbilir Sep 27, 2023
4d01a3e
Update ecs-params.yml
eisbilir Sep 27, 2023
950904b
Update ecs-params.yml
eisbilir Sep 27, 2023
af38302
Update ecs-params.yml
eisbilir Sep 27, 2023
22d4996
Update ecs-params.yml (#62)
eisbilir Sep 27, 2023
c995542
Update buildimage.sh
eisbilir Sep 29, 2023
4dfa8fd
Update buildimage.sh
eisbilir Sep 29, 2023
174c362
Update buildimage.sh
eisbilir Sep 29, 2023
d895356
feat: add payment attribute to challenge
rakibansary Oct 1, 2023
7ff9464
fix: deploy acl
rakibansary Oct 1, 2023
01d8f71
ci: deploy to dev
rakibansary Oct 2, 2023
d386ec5
fix: deploy to dev
rakibansary Oct 2, 2023
e3ed50e
ci: deploy to dev
rakibansary Oct 2, 2023
155ee02
ci: deploy to dev
rakibansary Oct 3, 2023
5e0abf4
ci: deploy to dev
rakibansary Oct 3, 2023
bf9f8e3
ci: deploy to dev
rakibansary Oct 3, 2023
6e5e49e
ci: deploy to dev
rakibansary Oct 6, 2023
537726f
ci: deploy to dev
rakibansary Oct 6, 2023
448f83d
ci: deploy to dev
rakibansary Oct 6, 2023
2eba98b
ci: test deploy
rakibansary Oct 6, 2023
54151ec
ci: test deploy
rakibansary Oct 6, 2023
f4fe44c
ci: deploy to dev
rakibansary Oct 6, 2023
6dd7c99
ci: deploy to dev
rakibansary Oct 6, 2023
134b1b3
ci: deploy to dev
rakibansary Oct 6, 2023
29063be
ci: allocate more resources to acl
rakibansary Oct 6, 2023
5cd2e61
ci: deploy to dev
rakibansary Oct 6, 2023
92c09e1
Update buildimage.sh
eisbilir Oct 10, 2023
f8978dc
Update buildimage.sh
Oct 16, 2023
cec24b2
fix: deploy plat-3491 after merge
rakibansary Oct 22, 2023
d375d9c
ci: PLAT-3491
rakibansary Oct 23, 2023
a24a23b
ci: PLAT-3491
rakibansary Oct 23, 2023
c98221a
fix: deploy PLAT-3491
rakibansary Oct 23, 2023
0138d32
ci: PLAT-3491
rakibansary Oct 23, 2023
0929f91
ci: PLAT-3491 - generate payments for tasks
rakibansary Oct 23, 2023
5f54f99
fix: generate task payments only when task is completed
rakibansary Oct 23, 2023
87c969e
fix: generate task payments only when task is completed
rakibansary Oct 23, 2023
5eaec67
ci: PLAT-3491 - generate payments for tasks
rakibansary Oct 23, 2023
3468851
ci: deploy ial alias fix
rakibansary Oct 24, 2023
cd3ec7c
ci: deploy ial alias fix
rakibansary Oct 24, 2023
3e8ade0
ci: PLAT-3491: overview calc fix
rakibansary Oct 29, 2023
3b94922
ci: PLAT-3491: duplicate lock/unlock
rakibansary Oct 29, 2023
340526e
ci: PLAT-3491: use markup when locking/unlocking budget
rakibansary Oct 30, 2023
d8c9595
ci: PLAT-3491: use markup when locking/unlocking budget
rakibansary Oct 30, 2023
0200ad2
ci: PLAT-3491
rakibansary Oct 30, 2023
5a4e987
ci: PLAT-3491 -> unlock budget on challenge cancellation
rakibansary Nov 9, 2023
dbbf08e
ci: PLAT-3491 -> unlock budget on challenge cancellation
rakibansary Nov 9, 2023
647b1f4
ci: PLAT-3491 -> correctly set end date
rakibansary Nov 10, 2023
ec83556
ci: PLAT-3491 -> include m2m token in create payment request
rakibansary Nov 11, 2023
abb0fda
ci: PLAT-3491 -> update to release versions
rakibansary Nov 13, 2023
7e38396
ci: CORE-40 -> point reward type
rakibansary Nov 14, 2023
517e91a
fix: add type in schema
rakibansary Nov 14, 2023
67fddeb
ci: CORE-40 -> point reward type
rakibansary Nov 14, 2023
cd338d7
ci: CORE-40 -> point reward type
rakibansary Nov 14, 2023
c67012d
Update buildimage.sh
eisbilir Nov 23, 2023
d5370c3
Update buildimage.sh
eisbilir Nov 23, 2023
ec5a6e7
Update buildimage.sh
eisbilir Nov 23, 2023
c580513
ci: CORE-103
rakibansary Nov 24, 2023
8d7cbb6
Update buildimage.sh
eisbilir Nov 24, 2023
65e6389
ci: CORE-103
rakibansary Nov 24, 2023
6ebe6ab
ci: CORE-63
Nov 26, 2023
ea7fd17
ci: IAL update
eisbilir Nov 27, 2023
72d1a46
ci: DC - PLAT-3739
eisbilir Nov 28, 2023
7e93801
ci: deploy CORE-63
Nov 28, 2023
f2957b3
ci: deploy CORE-63
Dec 3, 2023
91e3044
ci: deploy CORE-63
Dec 4, 2023
f89de32
fix: placement in challenge name
rakibansary Jan 31, 2024
53cc281
ci: deploy core-242
rakibansary Jan 31, 2024
063c21a
fix: deploy
rakibansary Jan 31, 2024
19b2f17
ci: deploy core-242
rakibansary Jan 31, 2024
774ba23
ci: deploy core-242
rakibansary Feb 1, 2024
e6ece01
ci: deploy core-242
rakibansary Feb 1, 2024
154ec63
ci: deply
rakibansary Feb 1, 2024
fc19198
fix: core-242
rakibansary Feb 1, 2024
18cb951
ci: deploy to dev
rakibansary Feb 14, 2024
3471aa2
fix: deploy script
rakibansary Feb 14, 2024
c24db98
ci: task payment
rakibansary Feb 15, 2024
dbccaf1
fix: use consistent reads
rakibansary Apr 4, 2024
976bca3
ci: deploy ps-241
rakibansary Apr 10, 2024
a56c546
Back out consistent read change due to issues with the Challenge tabl…
jmgasper Apr 18, 2024
2d46a61
Added dev reference, for now
jmgasper Apr 18, 2024
0f6468d
ci: deploy ps-256
rakibansary Apr 24, 2024
67a1442
Deploy latest change
jmgasper May 30, 2024
7f1a007
Deploy updates
jmgasper Jun 10, 2024
7181c72
Deploy changes
jmgasper Jun 11, 2024
6859f0e
Deploy changes to dev
jmgasper Jun 19, 2024
e982588
Deploy latest test for CORE-464
jmgasper Jul 9, 2024
d2d6511
Deploy changes
jmgasper Aug 6, 2024
459e4d1
Deploy latest changes to dev
jmgasper Sep 3, 2024
a8aa0e7
Updated config yml CORE-1973 [skip ci]
Gunasekar-K Mar 4, 2025
73fba9f
Deploy latest
jmgasper Apr 9, 2025
50ac024
Merge branch 'deploy/dev' of github.com:topcoder-platform/domain-chal…
jmgasper Apr 9, 2025
945f4dc
Deploy debug code to dev
jmgasper Apr 9, 2025
65f36cf
Deploy
jmgasper Apr 9, 2025
e028ec0
Deploy finance API changes
jmgasper Apr 15, 2025
f88e950
Deploy latest finance
vas3a Apr 16, 2025
f5aec01
Deploy
jmgasper Apr 24, 2025
65c2d93
Deploy
jmgasper Apr 24, 2025
ffa2b6c
Deploy for PM-1265
jmgasper May 26, 2025
fe12930
deploy for finance-api
vas3a May 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 58 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
version: 2.1
defaults: &defaults
docker:
- image: cimg/python:3.12.1-browsers
install_dependency: &install_dependency
name: Installation of build and deployment dependencies.
command: |
pip3 install awscli --upgrade
sudo curl -o /usr/local/bin/ecs-cli https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest
sudo chmod +x /usr/local/bin/ecs-cli
install_deploysuite: &install_deploysuite
name: Installation of install_deploysuite.
command: |
git clone --branch v1.4.17 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
cp ./../buildscript/master_deploy.sh .
cp ./../buildscript/buildenv.sh .
cp ./../buildscript/awsconfiguration.sh .
cp ./../buildscript/buildproperties.sh .

deploy_steps: &deploy_steps
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
- deploy:
name: Running MasterScript.
command: "#./awsconfiguration.sh $DEPLOY_ENV\n./awsconfiguration.sh $DEPLOY_ENV\nsource awsenvconf\n./buildproperties.sh -e $BUILD_ENV -k grpc\n./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar\nsource buildenvvar\n#./buildimage.sh\n./buildimage.sh ${DEPLOY_ENV}\n#./master_deploy.sh -d ECS -e $DEPLOY_ENV -m CLI -t latest -i ${APPNAME} \necs-cli configure --region us-east-1 --cluster $AWS_ECS_CLUSTER\necs-cli compose --project-name domain-challenge service up --launch-type FARGATE\n#magic___^_^___line\n"
jobs:
publish-image:
docker:
Expand All @@ -16,7 +41,7 @@ jobs:
- run:
name: "Setup deploy scripts"
command: |
git clone -b v1.4 https://github.com/topcoder-platform/tc-deploy-scripts ../${OUT_DIR}
git clone -b v1.4.15 https://github.com/topcoder-platform/tc-deploy-scripts ../${OUT_DIR}
cp ./../${OUT_DIR}/awsconfiguration.sh .
- run:
name: "Authenticate with AWS CodeArtifact and Build Docker Image"
Expand All @@ -39,6 +64,25 @@ jobs:
docker tag ${SERVICE_NAME}:${CIRCLE_SHA1} $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/${SERVICE_NAME}:${CIRCLE_SHA1}
docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/${SERVICE_NAME}:${CIRCLE_SHA1}

deploy-dev:
!!merge <<: *defaults
environment:
DEPLOY_ENV: "DEV"
LOGICAL_ENV: "dev"
BUILD_ENV: "dev"
APPNAME: "domain-challenge"
steps: *deploy_steps

deploy-prod:
!!merge <<: *defaults
environment:
DEPLOY_ENV: "PROD"
LOGICAL_ENV: "prod"
BUILD_ENV: "prod"
APPNAME: "domain-challenge"
steps: *deploy_steps


workflows:
version: 2
publish:
Expand All @@ -49,3 +93,16 @@ workflows:
branches:
only:
- main
- "deploy-dev":
context: "org-global"
filters:
branches:
only:
- deploy/dev
- "deploy-prod":
context: "org-global"
filters:
branches:
only:
- deploy/prod

4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ COPY yarn*.lock ./
COPY package*.json ./
COPY tsconfig*.json ./
COPY .npmrc ./
COPY reflections ./reflections
RUN yarn install --frozen-lockfile --production=false
COPY . ./
RUN yarn build:app
Expand All @@ -30,11 +31,14 @@ ENV GRPC_NOSQL_SERVER_PORT=50052
ENV REGISTRATION_PHASE_ID=""
ENV SUBMISSION_PHASE_ID=""
ENV CHECKPOINT_SUBMISSION_PHASE_ID=""
ENV TOPCODER_API_URL=""
ENV AUTH_SECRET=""
ENV AUTH0_AUDIENCE=""
ENV AUTH0_CLIENT_ID=""
ENV AUTH0_CLIENT_SECRET=""
ENV AUTH0_PROXY_SERVER_URL=""
ENV AUTH0_URL=""
ENV TOPCODER_SCHEDULER_LAMBDA_ARN=""
ENV KAFKA_ERROR_TOPIC=""

CMD ["server.js"]
38 changes: 0 additions & 38 deletions bin/nosql-client.js

This file was deleted.

40 changes: 0 additions & 40 deletions bin/server.js

This file was deleted.

26 changes: 26 additions & 0 deletions buildimage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

set -eo pipefail

ENV=$1
ENV=`echo "$ENV" | tr '[:upper:]' '[:lower:]'`

domain_challenge_TAG=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/domain-challenge:eba7935959ccefd70cfe4a3047682142829c78dd
anticorruption_layer_TAG=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/anticorruption-layer:fcba54b33908aecef195f92b7e72b7447dd265d6
informix_access_layer_TAG=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/informix-access-layer:f752f23648204c0846cc56eeb2ba25009fa8a79c
dynamo_access_layer_TAG=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/dynamo-access-layer:8a311badc8f8210d4fda9997c11bed2f3188c1f8

sed -i='' "s|dynamo-access-layer:latest|$dynamo_access_layer_TAG|" docker-compose.yml

sed -i='' "s|informix-access-layer:latest|$informix_access_layer_TAG|" docker-compose.yml

sed -i='' "s|anticorruption-layer:latest|$anticorruption_layer_TAG|" docker-compose.yml

sed -i='' "s|domain-challenge:latest|$domain_challenge_TAG|" docker-compose.yml

if [[ "$ENV" == prod ]]; then
sed -i='' "s|grpcserver.topcoder-dev.com|grpcserver.topcoder.com|" docker-compose.yml
fi



69 changes: 69 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
version: "3"
services:
dynamo-access-layer:
image: dynamo-access-layer:latest
read_only: true
container_name: dynamo-access-layer
restart: always
ports:
- "50052:50052"
logging:
driver: awslogs
options:
awslogs-group: /aws/ecs/grpc-services
awslogs-region: us-east-1
awslogs-stream-prefix: dynamo-access-layer
environment:
- GRPC_SERVER_HOST=0.0.0.0
- GRPC_SERVER_PORT=50052
informix-access-layer:
image: informix-access-layer:latest
read_only: true
container_name: informix-access-layer
restart: always
ports:
- "9090:9090"
logging:
driver: awslogs
options:
awslogs-group: /aws/ecs/grpc-services
awslogs-region: us-east-1
awslogs-stream-prefix: informix-access-layer
env_file:
- ia_env.ini
anticorruption-layer:
image: anticorruption-layer:latest
read_only: true
container_name: anticorruption-layer
restart: always
ports:
- "40020:40020"
logging:
driver: awslogs
options:
awslogs-group: /aws/ecs/grpc-services
awslogs-region: us-east-1
awslogs-stream-prefix: anticorruption-layer
env_file:
- acl_env.ini
depends_on:
- informix-access-layer
domain-challenge:
image: domain-challenge:latest
read_only: true
container_name: domain-challenge
restart: always
ports:
- "8888:8888"
logging:
driver: awslogs
options:
awslogs-group: /aws/ecs/grpc-services
awslogs-region: us-east-1
awslogs-stream-prefix: domain-challenge
env_file:
- dc_env.ini
depends_on:
- dynamo-access-layer
- informix-access-layer
- anticorruption-layer
29 changes: 29 additions & 0 deletions ecs-params.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 1
task_definition:
task_role_arn: ${GRPC_ROLE}
task_execution_role: ${AWS_ECS_TASK_EXECUTION_ROLE}
ecs_network_mode: ${AWS_ECS_NETWORK_MODE}
task_size:
cpu_limit: ${AWS_ECS_FARGATE_CPU}
mem_limit: ${AWS_ECS_FARGATE_MEMORY}
services:
dynamo-access-layer:
cpu_shares: 100
mem_limit: 512MB
informix-access-layer:
cpu_shares: 100
mem_limit: 3G
anticorruption-layer:
cpu_shares: 200
mem_limit: 3G
domain-challenge:
cpu_shares: 100
mem_limit: 1GB
run_params:
network_configuration:
awsvpc_configuration:
subnets:
- ${AWS_ECS_SUBNET_ID}
security_groups:
- ${AWS_ECS_SECURITY_GROUP}
assign_public_ip: ${ASSIGN_PUBLIC_IP}
52 changes: 0 additions & 52 deletions package.json

This file was deleted.

Loading