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.template
to.env
and runsource .env
for setting config values. - Run
devspace use context
and select kubernetes cluster followed bydevspace use namespace <namespace_name>
- Post making changes to application code run
devspace dev
to instantly run Azure front-end container along with its dependencies in target cluster. Runningdevspace dev
will 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 dev
also 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 deploy
to build container image and deploy application to target cluster. - Run
devspace purge
to purge deployed application in target cluster.