pyKVStore Service with Python flask for in memory KV store
Python3 with flask
pip install -r requirements.txt
Run the program
$ cd pyKVStore
$ python src/app.py
Access Application
Application is easy to install and deploy in Kubernetes cluster with manifests file.
Application is easy to install and deploy in a Docker container.
cd pyKVStore
docker build -t pyKVStore:1.0 .
This will create the pyKVStore application image and pull in the necessary dependencies. By default application runs on 8000 port inside container if you want to change please update src/app.py file. Application will be exposed on local 8000 port as well
docker run --name pyKVStore-dev -d -p 8000:8000 --restart="always" pyKVStore:1.0
CI/CD is set up with Jenkins. You can refer to Jenkinsfile inside repo. Jenkins CI/CD consists of below stages automatically provided dependent stages are successful
- Build code
- Run Unit tests
- Deploy Container
- Run Smoke Tests