CI&CD process is missed for the project. It should contain the following steps:
- code linting
- build Docker image
- run unit tests
- push Docker image
- create and push Helm chart
- deploy Helm chart to different environments
- creation of required resources in AWS can be a part of the pipeline as well
- etc.
Prerequisites
- Docker
- Docker Compose
To start the application, run the following command:
docker-compose up
Once the application is running, it will be accessible at: http://localhost:8888
- Deploy the application using Docker Compose.
- Set up the environment:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-tests.txt
- Run unit tests:
python tests/unit.py
- Go to the directory with the Helm chart.
- Set required variables in
values.yaml
. - Run Helm installation for the required namespace of K8s cluster in dry-run mode:
helm upgrade --install -n my-api --dry-run -f values.yaml helm-api .
- Analyse outputs and run the deployment if all good:
helm upgrade --install -n my-api -f values.yaml helm-api .