Skip to content

Commit

Permalink
[BugFix] Fix EC2 deployment script (#4095)
Browse files Browse the repository at this point in the history
  • Loading branch information
gchhablani authored Aug 10, 2023
1 parent f03bfcd commit 713c9f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/deployment/deploy_ec2_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ sudo mv /EvalAI/ ~
cd ~/EvalAI
sudo apt install awscli -y
sudo apt install docker-compose -y
sudo apt -V install gnupg2 pass
sudo groupadd docker
sudo apt -V install gnupg2 pass -y
sudo usermod -aG docker $USER
newgrp docker
aws configure set aws_access_key_id ${AWS_ACCESS_KEY_ID}
Expand All @@ -18,6 +19,6 @@ export TRAVIS_BRANCH=${ENVIRONMENT}
eval $(aws ecr get-login --no-include-email)
aws s3 cp s3://cloudcv-secrets/evalai/${ENVIRONMENT}/docker_${ENVIRONMENT}.env ./docker/prod/docker_${ENVIRONMENT}.env
echo "Deploying worker for queue: " ${QUEUE}
docker-compose -f pull worker
docker-compose -f docker-compose-${ENVIRONMENT}.yml pull worker
docker-compose -f docker-compose-${ENVIRONMENT}.yml run --name=worker_${QUEUE} -e CHALLENGE_QUEUE=${QUEUE} -e CHALLENGE_PK=${PK} -d worker
echo "Deployed worker docker container for queue: " ${QUEUE}

0 comments on commit 713c9f7

Please sign in to comment.