This is simple web application for testing in Docker, Kubernetes, etc.
- "Think" - Causes the application to use 100% of CPU for a moment to simulate computation
- "Pump up" - Causes the application to slowly eat a lot of memory to simulate memory leak
- "Suicide" - Causes the application to crash to test recovery
docker build -t polarsquad:hello-world-app
docker run -it --rm -p 3000:3000 polarsquad:hello-world-app
docker-compose up
- Install NodeJS (check version from
.nvmrc
) - Install Yarn (
npm install -g yarn
) - Install dependencies (
yarn install
)
yarn start
docker-compose up -d redis
REDIS_URL=redis://localhost yarn start