Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Building the Docker Image

Install Java 11

Run this command.

sudo apt install openjdk-11-jre-headless

Build the Application

Run:

./mvnw clean package

This will create the application file target/gitops-demo-webapp.jar.

Create the Docker Image

Log into Docker Hub.

docker login

Build the image. Here replace <DOCKER_USER> with your own Docker user ID.

docker build -t <DOCKER_USER>/gitops-demo-webapp .

Push the image.

docker push <DOCKER_USER>/gitops-demo-webapp

Test the Image

Run the image:

docker run --rm -p8080:8080 <DOCKER_USER>/gitops-demo-webapp

Send a request.

curl http://localhost:8080/hello

You should see.

{"requestCount":1,"greeting":"Hello!"}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages