diff --git a/README.md b/README.md index 8fb8899..b3c3b0a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![Docker](https://badgen.net/badge/icon/docker?icon=docker&label)](https://https://docker.com/) [![CI](https://github.com/agn-7/bitpin-project/workflows/build/badge.svg)](https://github.com/agn-7/bitpin-project/actions/workflows/github-actions.yml) -[![codecov](https://codecov.io/gh/agn-7/bitpin-project/branch/main/graph/badge.svg?style=flat-square)](https://codecov.io/gh/agn-7/bitpin-project) -[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) +[![codecov](https://codecov.io/gh/agn-7/bitpin-project/branch/main/graph/badge.svg?style=flat-square)](https://codecov.io/gh/agn-7/bitpin-project) +[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) # bitpin-project @@ -18,13 +18,28 @@ python manage.py createsuperuser python manage.py runserver 0.0.0.0:8000 ``` -The project can also be run in production mode: +The project can also be run in production mode using docker compose: ```bash docker-compose up -d --build docker exec -it bitpin_app python manage.py createsuperuser --settings=bitpin.product_settings ``` +Or via Kubernetes (microk8s): + +```bash +docker compose build +docker run -d -p 5000:5000 --restart=always --name registry registry:2 + +mkdir manifests +cd k8s +find . -name "*.yml" | xargs -I{} cp {} ../manifests/ +microk8s enable dns storage +microk8s kubectl apply -f manifests +microk8s kubectl get all +``` + + Then it's time to go to the `/admin` and create some content instances. Next, check them all and/or rate them using the following endpoints: Endpoint |HTTP Method | CRUD Method | Result