This project contains a Python application that prints the current app version using semantic versioning.
- Docker installed locally.
Follow these steps to build and run the Docker container locally.
First, clone this repository to your local machine and go inside the cloned directory:
git clone https://github.com/your-username/HiveBox-DevOps.git
cd HiveBox-DevOpsdocker build -t hive:latest .docker run --rm --name Hive-Flask -p 5000:5000 hive:latestpylint src/- install Kubernetes
- install Kind
kind create cluster --config kind-config.yaml
kubectl apply -f https://kind.sigs.k8s.io/examples/ingress/deploy-ingress-nginx.yaml
docker build -t hivebox-app:latest .
kind load docker-image hivebox-app:latest --name hivebox-cluster
kubectl apply -f k8s
sudo bash -c 'echo "127.0.0.1 hivebox.local" >> /etc/hosts'
kind delete cluster --name hivebox-cluster