Skip to content

spring-codes/spring-boot-k8-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot 2 Application running on K8

Gradle Tasks

  • gradle bootRun for running the Spring Boot application
  • gradle dockerBuildImage for building the docker image
  • gradle dockerPushImage for pushing the image to my private Docker registry

gradle dockerPushImage

You need to specify the properties dockerHubUsername and dockerHubPassword. See the Gradle docs.

This can be done through the global gradle properties file in ~/.gradle/gradle.properties. Like

dockerHubPassword=xxx
dockerHubUsername=xxx

Or it can be done through the command line like:

gradle dockerPushImage -PdockerHubUsername=[username] -PdockerHubPassword=[password]

Running on local Kubernetes

To check what the current configured clusters/contexts are:

kubectl config view

To show the current context:

kubectl config current-context

Continuous Integration

Used CircleCI. Needed to specify the following Environment Variables:

  • DOCKER_HUB_USERNAME
  • DOCKER_HUB_PASSWORD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%