0.0.3 • Published 1 year ago

ecs-manager v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

ecs-manager

Architecture Overview Documentation

Arch Overview

Setup Local Environment

  1. Install NodeJS and npm - only used to run npm scripts, not app code
  2. Install Docker - App code runs in containers
  3. Install Docker Compose - App code uses network to communicate
  4. Create .env file - navigate to 1password.com, grab data of file titled "ecs-manager: .env - local", create local file in root of project named ".env", paste in data
  5. Create .env.teste.remote file - navigate to 1password.com, grab data of file titled "ecs-manager: .env.test.remote - remote test", create local file in root of project named ".env.test.remote", paste in data

Run Local Tests

Run the command below to run all local tests:

    npm run docker:test

    # Optional flags for watch mode and debugging

    npm run docker:test -- --watch --debug

Run Live Remote Tests

  1. Check env var values in .env.test.remote to ensure that the latest build hashes / tags are used from the given aws ECR registry being used (we explicitly use tags based on commit hashes so we never experienc caching issues).
  2. Run the command below to run live remote tests, which rsync's this local repo to the given ec2, and then runs a real test that spins up another ec2 that then runs actual computations:
    npm run test:remote:ec2