/simple-app

Simple App that gets deployed on a Docker container using the Palantir plugin

Primary LanguageJava

Simple App deployed on Docker

This small project represents a simple Spring Reactive Web Application, that gets built into a JAR and deployed on a JDK15 Docker image.

This is the Docker image used: openjdk:15-jdk.

Build the sourcecode

Compile the code and build the Docker image:

gradle clean build prepareForDocker generateDockerfile docker

Start a Docker container from the image:

gradle dockerRun

Stop the container:

gradle dockerStop

Use an alias to rebuild the project, recreate the Docker image and start the container.

alias appgo='gradle clean build prepareForDocker generateDockerfile docker dockerRun'

Build an OCI image and run it using Docker

Build the image:

gradle bootBuildImage --imageName=simple-app-image

Run the image using Docker:

docker run -p 8080:8080 -t simple-app-image

Stop the app by using Ctrl+C

Spring Boot Reference Documentation

For further reference, please consider the following sections:

These additional references should also help you: