-
step 1 (DockerFile):
- we create a DockerFile
- we build the image using this command "docker build . -t shadifadila/my_repo:spring"
- we upload the image to dockerhub :
- the image avaible on this path :
- shadifadila/my_repo:spring
- the image avaible on this path :
-
step 2 (Kubernetes) :
-
there is theee files
- spring-configmap.yaml
- spring-deployment.yaml
- include two conatiners in the same POD, the first container is for mysql and the second for spring-website
- spring-service.yaml
- network - the service allow us to connect to the pod(spring - website)
- spring-configmap.yaml
-
run-command :
- kubectl apply -f ./Kubernetes/
-
delete commnad :
- kubectl delete svc,pods,deployments,configmap --all
-
-
step 3 : jenkines
kubeget-repo / spring Goto Github PK
View Code? Open in Web Editor NEWspring