Skip to content

pchen2145/springbootmaven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains the following:

  • Springboot and Java source code to run a simple "hello-world" application
  • POM file that contains the directory hierarchy structure needed for Maven build and package
  • Dockerfile that builds a container image that runs the application on localhost:8080

Files in this repository can be fully integrated with Jenkins to automate the build of a container image that can run the application. The steps that Jenkins performs can be broken down below.

  1. Jenkins clones the repository from GitHub
  2. Jenkins performs a build step using the Maven plugin to build, test, and package the source code into a .jar
  3. Jenkins performs a subsequent build step using the CloudBees Docker plugin. The Dockerfile in this repository is used to build a Docker image which contains the .jar file (the .jar file is copied using the Docker COPY command)
  4. Lastly, the CloudBees Docker plugin will tag the image and push it to the corresponding DockerHub repository. The Dockerhub repository for this project can be found here.

Questions comments or updates can be left below. Enjoy!

About

Reviewing maven builds on springboot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published