@FOR /f "tokens=*" %i IN ('minikube docker-env') DO @%i
kubectl -n urthehero delete deployment back
mvn -pl back clean package dockerfile:build dockerfile:push -DskipTests -Ddocker.registry=localhost:5000
kubectl apply -f kubernetes\back.yml
kubectl -n urthehero get all
kubectl -n urthehero logs -f pod/back-5b984bf5f4-4j5kx
Construire l'image Docker
$ mvn -pl back clean package dockerfile:build dockerfile:push -DskipTests -Ddocker.registry=localhost:5000
Déployer l'image sur Minikube
$ @FOR /f "tokens=*" %i IN ('minikube docker-env') DO @%i
$ mvn -pl back clean package dockerfile:build dockerfile:push -DskipTests -Ddocker.registry=localhost:5000