This repository contains the source code for the first project of the Cloud Computing System course.
Filipe Colla David - 70666 - [email protected]
Victor Ditadi Perdigão - 70056 - [email protected]
make deploy DOCKERUSER=your_docker_username it will automatically deploy in a minikube cluster
Additional steps, this assumes an alias from 'kubectl' to 'kc'
# Copy the output URL from this command (should be an IP Address)
minikube service minio-service -n tukano
# Edit the MINIO_EXTERNAL_URL value with it
kc edit cm secrets
# Delete the tukano pod so that it has access to the new variable
kc delete pod tukano-rest-api-[actualpod]If any changes to the code, there's no need to re-deploy the cluster
make tukano DOCKERUSER=your_docker_usernameAnd it will automatically update the deployment.
Compile to generate the .war file:
mvn clean compile packageBuild the docker image
docker build -t <docker_hub_username>/<name_image> .<docker_hub_username>: is the username from your docker hub account <name_image>: is the name of the image.
Push the docker image
docker push <docker_hub_username>/<name_image><docker_hub_username>/<name_image> is the image value for the tukano_deployment.yaml file
The following commands assume you got some sort of alias from kubectl to kc
cd kubernetes
kc apply -f postgressql.yaml
kc apply -f tukano_deployment.yaml
minikube service tukano-rest-api -n tukanoThe Tukano Rest API replica set is configured to allways download the docker image. If any changes to the code:
docker build -t <docker_hub_username>/<name_image> .
docker push <docker_hub_username>/<name_image>
kc delete pod <name_tukano_rest_api>It should come back up with the new image.