Based on Javalin with a helm chart.
- Java 8+ (for gradle, application uses 19 but is downloaded automatically by gradle if not available)
- Docker
- Kubernetes
- Helm
- Postgres
Install postgres with helm.
- helm repo add bitnami https://charts.bitnami.com/bitnami
- helm install warehouse-db bitnami/postgresql -f db/db-values.yaml
The project utilizes gradle to build the source code and produce a Docker image. The integration tests needs postgresql in order to pass.
To build the source code and create a docker image run:
./gradlew build jibDockerBuild
Note that jibDockerBuild builds towards a Docker daemon rather than directly towards a repository.
To install the helm chart:
- helm repo add bitnami https://charts.bitnami.com/bitnami (if you didn't do this step already)
- Follow the Build instructions above as we need the docker image built in order to fully install the helm chart.
- helm dep update helm
- helm install my-warehouse helm