ποΈSetup local Environment (Linux/Ubuntu)
Type on terminal
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose
Configure AWS
Type
aws configure
Access key ID ( Ask for DEVS the ID is different from other projects) - [sample id] - AKIA6ML6BIUKZKFNY6NX
Secret access key: EcAqufe+UJFHlmi1SQpeuHF+ajvJUR1VskbnZxmA
Location - us-east-1
File type - json
access key: AKIAR73M5IQAJDI7TGPN secret key: sB0D0PY+ITY2cfy9UHNWG28XkIfHL//GFoNo3R2S region: ap-southeast-1 output: json
Install nvm
Type βnpm installβ inside [name of the folder]
Running the docker:
There are instances that the docker wonβt automatically run if you wonβt type this command:
sudo systemctl start docker
Login the AWS: [sample code, get aws credentials to devOps]
aws ecr get-login-password --region ap-southeast-1 | docker login --username AWS --password-stdin 138130503029.dkr.ecr.ap-southeast-1.amazonaws.com
docker-compose down
docker-compose up -d
docker container ls
docker container logs xxxxxx -f (container id of web)
Last updated