Skip to content

Suresh918/SpringBootDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBootDemo

springboot + mysql sample

google's jib maven plugin added for building and pushing application as docker image to registry

https://github.com/GoogleContainerTools/jib/tree/master/jib-maven-plugin https://github.com/GoogleContainerTools/jib

The following is the command to build and push docker image,

mvn clean install jib:build -Djib.to.image=docker.io/suresh918/springboot-demo:latest -Djib.to.auth.username=${docker hub user name} -Djib.to.auth.password=${docker hub password}

the following is the command used in mychange project gitlab pipeline,

mvn --settings $MAVEN_SETTINGS --no-transfer-progress clean compile jib:build -Djib.from.image=$ARTIFACTORY_REGISTRY_DOCKER/distroless/java:11 -Djib.from.auth.username=$ARTIFACTORY_USERNAME -Djib.from.auth.password=$ARTIFACTORY_TOKEN -Djib.to.image=$ARTIFACTORY_REGISTRY_DOCKER/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME -Djib.to.auth.username=$ARTIFACTORY_USERNAME -Djib.to.auth.password=$ARTIFACTORY_TOKEN -Djib.httpTimeout=120000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages