Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/appuio/example-spring-boot-helloworld
https://github.com/appuio/example-spring-boot-helloworld
vshn-project-ignore
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/appuio/example-spring-boot-helloworld
- Owner: appuio
- License: apache-2.0
- Created: 2016-05-14T12:19:56.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-12-17T19:42:35.000Z (20 days ago)
- Last Synced: 2024-12-17T20:33:15.528Z (20 days ago)
- Topics: vshn-project-ignore
- Language: Java
- Homepage:
- Size: 773 KB
- Stars: 5
- Watchers: 5
- Forks: 37
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Boot APPUiO Example
This is a Spring Boot Example Application
## How to deploy
### Create New OpenShift Project
```bash
oc new-project example-spring-boot
```### Docker Build on APPUiO - Create Application and expose Service
```bash
oc new-app https://github.com/appuio/example-spring-boot-helloworld.git --strategy=docker --name=appuio-spring-boot-exoc expose service appuio-spring-boot-ex
```### Image from DockerHub
Take the pre built image from Dockerhub
```bash
oc new-app appuio/example-spring-boot
```## Local Build and Test
### Gradle
Build application with gradle:
```bash
./gradlew clean build
```Run application with gradle:
```bash
./gradlew bootRun
```### Container
Build Image with buildah:
```bash
buildah bud -t example-spring-boot-helloworld .
```Run Image with podman:
```bash
podman run -ti -p 8080:8080 -p 9000:9000 localhost/example-spring-boot-helloworld:latest
```## Endpoints
* Application:
* Health:
* Prometheus:## Configuration
Enable request logs by setting the value of the environment variable `LOGGING_LEVEL_CH_APPUIO_TECHLAB_CONTROLLER_REQUESTDURATIONFILTER` to `DEBUG`.