Dream League website
- Docker
- Docker Compose
Optional:
- Kubernetes
- Helm
The application is designed to run in containerised environments, using Docker Compose in development and Kubernetes in production.
- A Helm chart is provided for production deployments to Kubernetes.
docker-compose -f docker-compose.yaml build
docker-compose -f docker-compose.yaml up
This service is dependent on the availability of Dream League API running in the same Docker network.
A helper script will start this service in a shared network.
./scripts/start
Alternatively, the commands can be run individually.
docker network create dream-league
docker-compose build
docker-compose docker-compose.yaml \
-f docker-compose.override \
-f docker-compose.link \
up
A convenience script is provided to run automated tests in a containerised
environment. This will rebuild images before running tests via docker-compose,
using a combination of docker-compose.yaml
and docker-compose.test.yaml
.
The command given to docker-compose run
may be customised by passing
arguments to the test script.
Examples:
# Run all tests
scripts/test
# Run tests with file watch
scripts/test -w