Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ak-git/simpleapp
Simple Java "Hello World" Application with Gradle and Docker support
https://github.com/ak-git/simpleapp
docker docker-compose gradle gradle-java hello-world java java22 javamodulesystem jetbrains-idea renovate renovatebot
Last synced: 5 days ago
JSON representation
Simple Java "Hello World" Application with Gradle and Docker support
- Host: GitHub
- URL: https://github.com/ak-git/simpleapp
- Owner: ak-git
- License: unlicense
- Created: 2022-06-25T18:49:46.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T16:52:29.000Z (24 days ago)
- Last Synced: 2024-10-22T05:56:06.377Z (24 days ago)
- Topics: docker, docker-compose, gradle, gradle-java, hello-world, java, java22, javamodulesystem, jetbrains-idea, renovate, renovatebot
- Language: Java
- Homepage: https://hub.docker.com/r/a002k/simple-app
- Size: 328 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Java "Hello World" Application with Gradle and Docker support
## Run using Gradle
```shell
./gradlew run -t
```## [Semantic versioning](https://zoltanaltfatter.com/2020/04/10/semantic-versioning-with-jgitver/)
### Plugin [fr.brouillard.oss.gradle.jgitver](https://github.com/jgitver/gradle-jgitver-plugin)
```shell
./gradlew version
``````shell
./gradlew version | grep Version | awk '{ print $2 }'
```### Update version and add git tag
```shell
git tag 2024.11.1
```## Update dependencies
### Plugin [com.github.ben-manes.versions](https://github.com/ben-manes/gradle-versions-plugin)
```shell
./gradlew dependencyUpdates
```## 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 a002k/simple-app
``````shell
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 IDand follow ```-f``` logs
```shell
docker logs -f simple-app
```to stop
```shell
docker stop simple-app
```## Run docker image as docker-compose
```shell
docker compose run -d --name simple-app --rm simple-app
```and follow ```-f``` logs
```shell
docker compose logs -f simple-app
```to stop
```shell
docker compose down
```[![Github Action Badge](https://github.com/ak-git/SimpleApp/actions/workflows/actions.yml/badge.svg)](https://github.com/ak-git/SimpleApp/actions/workflows/actions.yml/badge.svg)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/f7e44f2278c24e49927d582424b0e2a4)](https://app.codacy.com/gh/ak-git/SimpleApp?utm_source=github.com&utm_medium=referral&utm_content=ak-git/SimpleApp&utm_campaign=Badge_Grade_Settings)[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=ak-git_SimpleApp&metric=coverage)](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ak-git_SimpleApp&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ak-git_SimpleApp&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ak-git_SimpleApp&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=ak-git_SimpleApp&metric=bugs)](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=ak-git_SimpleApp&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=ak-git_SimpleApp&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=ak-git_SimpleApp&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=ak-git_SimpleApp)