This is a simple Java web app built using Spring Boot and OpenJDK 11
338
This is a simple Java web app built using Spring Boot and OpenJDK 11.
The app has been designed with cloud native demos & containers in mind, in order to provide a real working application for deployment, something more than "hello-world" but with the minimum of pre-reqs. It is not intended as a complete example of a fully functioning architecture or complex software design.
Typical uses would be deployment to Kubernetes, demos of Docker, CI/CD (build pipelines are provided), deployment to cloud (Azure) monitoring, auto-scaling
The app has several basic pages accessed from the top navigation menu, some of which are only lit up when certain configuration variables are set (see 'Optional Features' below):
Features:

PORTazure_applicationinsights_instrumentationkeyspring_security_oauth2_client_registration_azure_clientidspring_security_oauth2_client_registration_azure_clientsecretazure_activedirectory_tenantidNOTE. The Azure AD application must be registered with a reply/redirect URL which ends with /login/oauth2/code/azure, and implicit grant enabled
Basic:
./mvnw spring-boot:run
With configuration:
export azure_applicationinsights_instrumentationkey='my-key'
export spring_security_oauth2_client_registration_azure_clientid='my-client-id'
export spring_security_oauth2_client_registration_azure_clientsecret='my-secret'
export azure_activedirectory_tenantid='my-tenant'
./mvnw spring-boot:run
Basic:
docker run --rm -it -p 8080:8080 bencuk/java-demoapp
With configuration:
docker run --rm -it -p 8080:8080 \
-e azure_applicationinsights_instrumentationkey="my-key" \
-e spring_security_oauth2_client_registration_azure_clientid="my-client-id" \
-e spring_security_oauth2_client_registration_azure_clientsecret="my-secret" \
-e azure_activedirectory_tenantid="my-tenant" \
bencuk/java-demoapp
Content type
Image
Digest
Size
109 MB
Last updated
about 6 years ago
docker pull bencuk/java-demoapp