- Java 16 (See SDKMan for JDK management)
- Gradle
- Docker
- Docker Compose
The run script will build the app, dockerize it, and deploy to docker compose automatically.
./run_it.sh
- Run
./gradlew clean build
to build the .jar locally. - Dockerize it with
docker build .
. - Substitute the tag in the
docker.compose.yml
file and rundocker-compose up -d
to deploy it locally.
docker-compose ps
- Shows which docker containers are running.docker logs -f openbrewerydb
- Shows the server logs.docker-compose stop
- Stops all containersdocker-compose up
- Starts all containers, or restarts if there were changes.
We can run a dependency check analysis that will show us vulnerabilities. This command will start the analysis:
./gradlew dependencyCheckAnalyze
This will output an HTML and JSON file in the /build/reports/
directory.