Skip to content

neuro-inc/platform-disk-api

Repository files navigation

Platform Disk Api

Local Development

  1. Install minikube (https://github.com/kubernetes/minikube#installation);
  2. Authenticate local docker:
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 771188043543.dkr.ecr.us-east-1.amazonaws.com

(If values is outdated, ask someone for recent on slack and then update this file) 3. Launch minikube:

make start_k8s
  1. Make sure the kubectl tool uses the minikube k8s cluster:
minikube status
kubectl config use-context minikube
  1. Load images into minikube's virtual machine:
make docker_pull_test_images
  1. Apply minikube configuration and some k8s fixture services:
make apply_configuration_k8s
  1. Create a new virtual environment:
python -m venv venv
source venv/bin/activate
  1. Install testing dependencies:
make setup
  1. Run the unit test suite:
make test_unit
  1. Run the integration test suite:
make test_integration
  1. Shutdown minikube:
minikube stop

How to release

Push new tag of form vXX.XX.XX where XX.XX.XX is semver version (please just use the date, like 20.12.31 for 31 December 2020). You can do this by using github "Create release" UI.