This document describes inner-loop flow while making changes to Azure Vote front-end and back-end application code.
- DevSpace CLI
- Install Azure CLI
- Install Docker
- Install Kubectl
- Create ACR token
- Login with
docker login -u <TOKEN_NAME> -p <TOKEN> <ACR_NAME>.azurecr.io
This repository is using DevSpace as Inner loop framework. DevSpace runs as a single binary CLI tool directly on your computer and ideally, you use it straight from the terminal within your IDE. DevSpace does not require a server-side component as it communicates directly to your Kubernetes cluster using your kube-context, just like kubectl.
DevSpace allows you to store all your workflows in one declarative config file: devspace.yaml. This repository has devspace.yaml for Azure vote App that includes both font-end and back-end.
- Rename
.env.templateto.envand runsource .envfor setting config values. - Run
devspace use contextand select kubernetes cluster followed bydevspace use namespace <namespace_name> - Post making changes to application code run
devspace devto instantly run Azure front-end container along with its dependencies in target cluster. Runningdevspace devwill also implicitly generate manifest required to run 'Azure Vote App'. To explicitly generate manifest Rundevspace run gen-manifest - Post running
devspace dev, you can access Azure front-end through the port forwarding configuration specified in devspace.yaml e.ghttp://localhost:8085/ - Running
devspace devalso syncs app files into containers and you can continue making changes to app code without rebuilding image. - After the changes are finalized and tested push a new image to Azure Container registry by running
devspace build - Run
devspace deployto build container image and deploy application to target cluster. - Run
devspace purgeto purge deployed application in target cluster.