Official Open Brewery DB Java REST API
The run script will build the app, dockerize it, and deploy to docker compose automatically.
./run_it.sh
./gradlew clean build
to build the .jar locally.docker build .
.docker.compose.yml
file and run docker-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.