Sample Node.js application that can be tested at local Docker environment, also deployed at AWS using ecs-cli.
- Install Docker in your local machine.
- $> docker-compose build
- $> docker-compose up -d
- $> docker exec -it APP_CONTAINER_ID bash
- $> mocha DIR_THAT_YOU_WANT_TO_TEST
- I can't find the app container after I enter docker-compose up -d. If you want to trace debug console logs of the application, enter docker-compose up without -d. If the console says "Permission denied on entrypoint.sh", change the file mode of entrypoint.sh that can be executed, then try again docker-compose up.