0.0.3 • Published 1 year ago
ecs-manager v0.0.3
ecs-manager
Architecture Overview Documentation
Setup Local Environment
- Install NodeJS and npm - only used to run npm scripts, not app code
- Install Docker - App code runs in containers
- Install Docker Compose - App code uses network to communicate
- 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
- 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
- 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).
- 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