Skip to content

Latest commit

 

History

History
97 lines (66 loc) · 2.99 KB

README.md

File metadata and controls

97 lines (66 loc) · 2.99 KB

Simple Java "Hello World" Application with Gradle and Docker support

Run using Gradle

./gradlew run -t
./gradlew version
./gradlew version | grep Version | awk '{ print $2 }'

Update version and add git tag

git tag 2025.01

Update dependencies

./gradlew dependencyUpdates

Check dependencies

./gradlew buildHealth

Run docker image

docker run --rm a002k/simple-app
docker run -d --name simple-app --rm a002k/simple-app
  • -i Keep STDIN open even if not attached
  • --rm Remove container after stop
  • -d Detach mode, Run container in background and print container ID

and follow -f logs

docker logs -f simple-app

to stop

docker stop simple-app

Run docker image as docker-compose

docker compose run -d --name simple-app --rm simple-app

and follow -f logs

docker compose logs -f simple-app

to stop

docker compose down

Github Action Badge

Coverage Maintainability Rating Reliability Rating Security Rating

Bugs Code Smells Duplicated Lines (%) Vulnerabilities