gradle bootRun
for running the Spring Boot applicationgradle dockerBuildImage
for building the docker imagegradle dockerPushImage
for pushing the image to my private Docker registry
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]
To check what the current configured clusters/contexts are:
kubectl config view
To show the current context:
kubectl config current-context
Used CircleCI. Needed to specify the following Environment Variables:
- DOCKER_HUB_USERNAME
- DOCKER_HUB_PASSWORD