Skip to content

TuKano is a social network inspired in existing video sharing services, such as TikTok or Youtube Shorts

Notifications You must be signed in to change notification settings

filipecolladavid/tukano

Repository files navigation

Tukano SSC 24/25

This repository contains the source code for the first project of the Cloud Computing System course.

Students:

Filipe Colla David - 70666 - [email protected]
Victor Ditadi Perdigão - 70056 - [email protected]

Usage

Make file

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]

Development

If any changes to the code, there's no need to re-deploy the cluster

make tukano DOCKERUSER=your_docker_username

And it will automatically update the deployment.

Manually

Creating the Docker image

Compile to generate the .war file:

mvn clean compile package

Build 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

Deploying the microservices (locally)

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 tukano

'Hot reload' development

The 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.

About

TuKano is a social network inspired in existing video sharing services, such as TikTok or Youtube Shorts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published