Skip to content

Simplified Development Setup

Jonas Umland edited this page Jan 21, 2021 · 2 revisions

Why another setup?

We observed that the standard deployment to a local minikube cluster using garden deploy takes quite some time to complete. Also the garden dev command did not help us out because we had different issues (e.g. too many open file handles). Therefore we use a different for most of our development on the frontend and backend components. We only deploy the relevant part to the kubernetes cluster, namely the scheduler, the Postgres database. The frontend and backend will be started directly on your local machine and not in the cluster.

Starting minikube

We tested this setup under macOS and Ubuntu with minikube v1.14.2. Under Ubuntu simply run minikube start. Under macOS run minikube start --vm=true

Setup

To deploy the needed components and setup the port-forwarding run the script deploy_dev.sh.

Start the backend

create a python virtualenv, activate it and install the requirements with pip install -r services/python-images/requirements.txt go to the directory services/python-images/src and start the dev server with run_dev_server.sh

Start the frontend

go to the directory services/frontend-image/src and run yarn start

Clone this wiki locally