Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/claudioaltamura/spring-boot-jib
Demo project for Spring Boot with Jib
https://github.com/claudioaltamura/spring-boot-jib
github-actions jib maven minikube spring-boot
Last synced: 9 days ago
JSON representation
Demo project for Spring Boot with Jib
- Host: GitHub
- URL: https://github.com/claudioaltamura/spring-boot-jib
- Owner: claudioaltamura
- License: mit
- Created: 2023-01-25T13:52:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T09:40:49.000Z (7 months ago)
- Last Synced: 2024-04-24T15:04:40.964Z (7 months ago)
- Topics: github-actions, jib, maven, minikube, spring-boot
- Language: Java
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/claudioaltamura/spring-boot-jib/maven-build.yml?branch=main)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
# spring-boot-jib
Demo project for Spring Boot with Jib
* added Spring DevTools
* using minikube private registry## Minikube
#### Private Registry with minikube
minikube addons enable registry
https://minikube.sigs.k8s.io/docs/handbook/registry/#using-a-private-registry
#### Start
minikube start## Build
eval $(minikube docker-env)
https://minikube.sigs.k8s.io/docs/handbook/pushing/#1-pushing-directly-to-the-in-cluster-docker-daemon-docker-env
mvn compile jib:build
or
mvn package
check image
export REGISTRY_PORT=61363
curl http://localhost:$REGISTRY_PORT/v2/_catalog | jq .curl http://localhost:$REGISTRY_PORT/v2/spring-boot-jib/tags/list | jq .
https://docs.docker.com/registry/spec/api/
## Run app
minikube kubectl -- create deployment spring-boot-jib --image=localhost:$REGISTRY_PORT/spring-boot-jib:latest
minikube kubectl -- get deploymentsminikube kubectl -- expose deployment spring-boot-jib --type=NodePort --port=8080
minikube kubectl -- get svcexport NODE_PORT=$(minikube kubectl -- get services/spring-boot-jib -o go-template='{{(index .spec.ports 0).nodePort}}')
echo NODE_PORT=$NODE_PORTcurl http://$(minikube ip):$NODE_PORT/superheroes | jq .
ps -ef | grep [email protected]
## Cleanup
minikube kubectl -- delete svc spring-boot-jib
minikube kubectl -- get svc
minikube kubectl -- delete deployment spring-boot-jib
minikube kubectl -- get deployments