πŸ—οΈSetup local Environment (Linux/Ubuntu)

  1. Type on terminal

    1. 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
  2. Configure AWS

    1. Type

      1. aws configure

      2. Access key ID ( Ask for DEVS the ID is different from other projects) - [sample id] - AKIA6ML6BIUKZKFNY6NX

      3. Secret access key: EcAqufe+UJFHlmi1SQpeuHF+ajvJUR1VskbnZxmA

      4. Location - us-east-1

      5. File type - json

    access key: AKIAR73M5IQAJDI7TGPN secret key: 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 region: ap-southeast-1 output: json

  3. Install nvm

  4. 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