Skip to content
/ SimpleApp Public template

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

License

Notifications You must be signed in to change notification settings

ak-git/SimpleApp

Repository files navigation

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 2024.11.1

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 Codacy Badge

Coverage Maintainability Rating Reliability Rating Security Rating

Bugs Code Smells Duplicated Lines (%) Vulnerabilities