https://github.com/ak-git/helidonse
Simple HelidonSE "Hello World" Application with Gradle and Docker support
https://github.com/ak-git/helidonse
docker docker-compose gradle gradle-java helidon-se hello-world java java23 jetbrains-idea renovate renovate-bot
Last synced: 12 days ago
JSON representation
Simple HelidonSE "Hello World" Application with Gradle and Docker support
- Host: GitHub
- URL: https://github.com/ak-git/helidonse
- Owner: ak-git
- License: unlicense
- Created: 2025-02-11T16:04:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-11T19:28:36.000Z (over 1 year ago)
- Last Synced: 2025-02-11T20:24:14.218Z (over 1 year ago)
- Topics: docker, docker-compose, gradle, gradle-java, helidon-se, hello-world, java, java23, jetbrains-idea, renovate, renovate-bot
- Language: Java
- Homepage: https://hub.docker.com/r/a002k/helidon-se
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```shell
curl -w "\n" http://localhost:8080/simple-greet
```
http://localhost:8080/greet
```shell
curl -w "\n" http://localhost:8080/greet
```
### Get greeting message for Joe:
http://localhost:8080/greet/Joe
```shell
curl -w "\n" http://localhost:8080/greet/Joe
```
### Change greeting
```shell
curl -w "\n" -X PUT -d 'Howdy' http://localhost:8080/greet/greeting
```
## Run using Gradle
```shell
./gradlew run -t
```
## [Semantic versioning](https://zoltanaltfatter.com/2020/04/10/semantic-versioning-with-jgitver/)
### Plugin [com.github.jmongard.git-semver-plugin](https://github.com/jmongard/Git.SemVersioning.Gradle)
```shell
./gradlew printVersion
```
### Update version
```shell
gradle releaseVersion
```
### Add git tag
```shell
git tag 2026.04
```
## Update dependencies
### Plugin [com.github.ben-manes.versions](https://github.com/ben-manes/gradle-versions-plugin)
```shell
./gradlew dependencyUpdates --no-parallel
```
## Check dependencies
### Plugin [dependency-analysis-gradle-plugin](https://github.com/autonomousapps/dependency-analysis-gradle-plugin)
```shell
./gradlew buildHealth
```
## Run docker image
```shell
docker run --rm -p 8080:8080 a002k/helidon-se
```
```shell
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
```shell
docker logs -f helidon-se
```
to stop
```shell
docker stop helidon-se
```
## Run docker image as docker-compose
```shell
docker compose run -d --name helidon-se --rm helidon-se
```
Use ```./.env``` file or overwrite as
```shell
APP_GREETING=Greet docker compose up -d
```
and follow ```-f``` logs
```shell
docker compose logs -f helidon-se
```
to stop
```shell
docker compose down
```
[](https://github.com/ak-git/HelidonSE/actions/workflows/actions.yml/badge.svg)
[](https://sonarcloud.io/summary/new_code?id=ak-git_HelidonSE)
[](https://sonarcloud.io/summary/new_code?id=ak-git_HelidonSE)
[](https://sonarcloud.io/summary/new_code?id=ak-git_HelidonSE)
[](https://sonarcloud.io/summary/new_code?id=ak-git_HelidonSE)
[](https://sonarcloud.io/summary/new_code?id=ak-git_HelidonSE)
[](https://sonarcloud.io/summary/new_code?id=ak-git_HelidonSE)
[](https://sonarcloud.io/summary/new_code?id=ak-git_HelidonSE)
[](https://sonarcloud.io/summary/new_code?id=ak-git_HelidonSE)