tusharmahale / pyKVstore

In Memory KV store in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyKVStore

pyKVStore Service with Python flask for in memory KV store

Pre-requisites

Python3 with flask

pip install -r requirements.txt

How to Run

Run the program

$ cd pyKVStore
$ python src/app.py

Access Application

Kubernetes

Application is easy to install and deploy in Kubernetes cluster with manifests file.

Docker

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

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

Prometheus

Prometheus Metrics.

About

In Memory KV store in Python


Languages

Language:Python 79.8%Language:Shell 11.3%Language:Dockerfile 9.0%