Skip to content

ak-git/HelidonSE

Repository files navigation

Simple HelidonSE Application with Gradle and Docker support

A simple service to greet you.

Inspired by

  1. https://medium.com/helidon/helidon-injection-4f3321ee7231
  2. https://github.com/helidon-io/helidon-examples/blob/helidon-4.x/examples/quickstarts/helidon-quickstart-inject/src/test/resources/application-test.yaml

Examples:

Get default greeting message:

http://localhost:8080/simple-greet

curl -w "\n" http://localhost:8080/simple-greet

http://localhost:8080/greet

curl -w "\n" http://localhost:8080/greet

Get greeting message for Joe:

http://localhost:8080/greet/Joe

curl -w "\n" http://localhost:8080/greet/Joe

Change greeting

curl -w "\n" -X PUT -d 'Howdy' http://localhost:8080/greet/greeting

Run using Gradle

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

Update version and add git tag

git tag 2026.03

Update dependencies

./gradlew dependencyUpdates --no-parallel

Check dependencies

./gradlew buildHealth

Run docker image

docker run --rm -p 8080:8080 a002k/helidon-se
docker run -d --name helidon-se --rm -p 8080:8080 a002k/helidon-se
  • -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 helidon-se

to stop

docker stop helidon-se

Run docker image as docker-compose

docker compose run -d --name helidon-se --rm helidon-se

Use ./.env file or overwrite as

APP_GREETING=Greet docker compose up -d

and follow -f logs

docker compose logs -f helidon-se

to stop

docker compose down

Github Action Badge

Coverage Maintainability Rating Reliability Rating Security Rating

Bugs Code Smells Duplicated Lines (%) Vulnerabilities

About

Simple HelidonSE Application with Gradle and Docker support

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors