Skip to content

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

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 178 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
ebe7033
Code change for deployment
Gunasekar-K Mar 21, 2023
5761087
Code change for deployment
Gunasekar-K Mar 21, 2023
dbab133
Code change for deployment
Gunasekar-K Mar 21, 2023
807a058
Code change for deployment
Gunasekar-K Mar 21, 2023
b016f2c
Code change for deployment
Gunasekar-K Mar 21, 2023
689b152
Code change for deployment
Gunasekar-K Mar 21, 2023
fb627c2
Code change for deployment
Gunasekar-K Mar 21, 2023
7d537ae
Code change for deployment
Gunasekar-K Mar 21, 2023
d27dad3
Code change for deployment
Gunasekar-K Mar 21, 2023
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
b74eb27
Merge pull request #15 from topcoder-platform/deploy/dev
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
fc7e176
Merge branch 'deploy/dev' into deploy/prod
rakibansary Mar 26, 2023
662ae38
ci: deploy to prod
rakibansary Mar 26, 2023
f9eb5b4
ci: deploy to prod
rakibansary Mar 26, 2023
305aeb2
fix: prize undefined
rakibansary Mar 26, 2023
34ec65c
ci: deploy to prod
rakibansary Mar 26, 2023
0e398aa
ci: deploy to prod
rakibansary Mar 26, 2023
2d64ed7
ci: deploy to dev
rakibansary Mar 26, 2023
38a65bb
ci: increase cpu allocation
rakibansary Mar 26, 2023
64bff32
ci: deploy to prod
rakibansary Mar 26, 2023
01f1f01
ci: deploy to prod
rakibansary Mar 26, 2023
8cedc47
fix: metadata not saving
rakibansary Mar 26, 2023
a1f56dc
fix: incorrect mapping
rakibansary Mar 26, 2023
2f20615
fix: deploy
rakibansary Mar 26, 2023
4a75388
fix: allow multiple submissions
rakibansary Mar 26, 2023
8a9dfcc
fix: do not make challenge creator the copilot automatically
rakibansary Mar 27, 2023
34fac46
fix: do not overwrite data in legacy attribute
rakibansary Mar 27, 2023
aa6d931
chore: deploy to dev
rakibansary Mar 27, 2023
1a059d0
ci: deploy to prod
rakibansary Mar 27, 2023
60c72e5
fix: always use prod ECR images
rakibansary Mar 28, 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
4cb2ab3
ci: deploy to prod
rakibansary Mar 30, 2023
7a6863f
ci: deploy to dev
eisbilir Apr 3, 2023
68aad0a
ci: deploy to prod
eisbilir Apr 3, 2023
bae6ba1
ci: deploy to prod
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
4ecb01e
ci: deploy schema, prize sets fixes
rakibansary Apr 7, 2023
a638d63
ci: deploy to prod
rakibansary Apr 7, 2023
56cbc00
ci: deploy to dev
rakibansary Apr 7, 2023
ba15ff0
ci: deploy to dev
rakibansary Apr 7, 2023
7166d9f
ci: deploy to prod
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
ece64c4
ci: deploy to prod
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
ea4f257
Merge branch 'deploy/dev' into deploy/prod
rakibansary May 15, 2023
5d1002a
ci: plat-2772
rakibansary May 15, 2023
f7f7473
ci:PLAT-2772
bountyC0d3r May 18, 2023
5337359
ci:PLAT-2772
bountyC0d3r May 19, 2023
b659950
ci: deploy to prod
eisbilir May 22, 2023
50ab06c
ci: new ial image
eisbilir Jun 12, 2023
fad1eab
ci: new acl image
eisbilir Jun 12, 2023
24c30d1
ci: new acl, dc image
eisbilir Jun 14, 2023
fa50aa1
ci: deploy new autopilot to production
rakibansary Jul 5, 2023
2d400d2
ci: deploy new autopilot to production
rakibansary Jul 5, 2023
17bffd6
ci: read only fs
rakibansary Jul 5, 2023
062d4c4
ci: deploy to prod
rakibansary Jul 10, 2023
80d9f77
ci: deploy to prod
rakibansary Sep 5, 2023
f78b566
ci: deploy to prod
Sep 12, 2023
7b70900
fix: PLAT-3271
Sep 13, 2023
7773144
deploy to prod
eisbilir Sep 22, 2023
82a15f9
deploy to prod
eisbilir Sep 22, 2023
d338182
Update buildimage.sh
eisbilir Sep 23, 2023
0252dc3
deploy to prod
eisbilir Sep 25, 2023
8a89078
Update buildimage.sh
eisbilir Sep 26, 2023
e8359db
deploy to prod
eisbilir Sep 27, 2023
83177ed
Update buildimage.sh
eisbilir Sep 29, 2023
fd5fd0d
Update buildimage.sh
eisbilir Oct 1, 2023
fadf2eb
Update buildimage.sh
eisbilir Oct 10, 2023
48a3a9e
Update buildimage.sh
Oct 19, 2023
1e32797
ci: PLAT-3491
rakibansary Nov 13, 2023
833a3ec
ci: PLAT-3491
rakibansary Nov 13, 2023
35e82a0
ci: add ba url
rakibansary Nov 13, 2023
c31fcb6
ci: IAL raw query update
eisbilir Nov 28, 2023
02acb11
ci: DC - PLAT-3739
eisbilir Nov 29, 2023
e9d9a1e
ci: CORE-103 & CORE-40
rakibansary Dec 1, 2023
e12645b
fix: add ordinal for placement prizes
rakibansary Feb 7, 2024
526088d
fix: ci/cd
rakibansary Feb 7, 2024
5e7085e
fix: ci/cd
rakibansary Feb 7, 2024
2e54228
fix: ci/cd
rakibansary Feb 7, 2024
ac63c61
fix: ci/cd
rakibansary Feb 7, 2024
b3bcdb8
ci: send topgear payments to payroll
rakibansary Feb 15, 2024
8627267
ci: task payment
rakibansary Feb 15, 2024
4f1302a
ci: deploy ps-241
rakibansary Apr 15, 2024
906f132
Fix for CORE-403 where phase changes not propagating to DynamoDB
jmgasper Apr 18, 2024
dfe4f07
ci: deploy ps-256
rakibansary Apr 25, 2024
b8a5dc0
ci: deploy ps-256
rakibansary Apr 25, 2024
9367089
ci: deploy ps-256
rakibansary Apr 25, 2024
6749d75
Updated config yml CORE-1973 [skip ci]
Gunasekar-K Mar 4, 2025
06fc6c6
Updated config yml CORE-1973 [skip ci]
Gunasekar-K Mar 4, 2025
0896682
Updated config yml CORE-1973 [skip ci]
Gunasekar-K Mar 4, 2025
1cf736d
Deploy latest update (PM-1141)
jmgasper Apr 27, 2025
20ffb33
Deploy latest update (PM-1141)
jmgasper Apr 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
61 changes: 59 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,37 @@
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:
- image: cimg/aws:2023.01
environment:
CODEARTIFACT_ENV: PROD
ECR_ENV: DEV
ECR_ENV: PROD
SERVICE_NAME: "domain-challenge"
OUT_DIR: "buildscripts"
steps:
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

7 changes: 7 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,17 @@ 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 TOPCODER_API_ENDPOINT=""
ENV KAFKA_ERROR_TOPIC=""
ENV V3_BA_API_URL=""
ENV PURE_V5_CHALLENGE_TEMPLATE_IDS=""

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.

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

set -eo pipefail

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

informix_access_layer_TAG=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/informix-access-layer:73812d40e5867bc6a78cf45c35c57e5a4e51cac8
dynamo_access_layer_TAG=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/dynamo-access-layer:117d44ee1a9f04383980bb20429d31e871589a47
anticorruption_layer_TAG=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/anticorruption-layer:2ea3600c121cf7bc09202d7c09953e71c9485fb3
domain_challenge_TAG=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/domain-challenge:4d4b83ea39c89e9e78dc2d33d1349b4b8032ed6c

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: 1G
informix-access-layer:
cpu_shares: 1000
mem_limit: 3G
anticorruption-layer:
cpu_shares: 100
mem_limit: 1G
domain-challenge:
cpu_shares: 200
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