This is the simplest way for a developer to get the sample up and running locally.
- Install a Git client to obtain the sample code.
- Install Maven and a Java 8 JDK.
- Install a Docker engine.
- Install and initialize the Helm client.
- Install minikube.
- Enable ingress with the command
minikube addons enable ingress
. git clone
the following projects:mvn clean package
in each ../sample.microservices.* projects except docs.- If you have not done so already, ensure that your Docker CLI is targeting the minikube Docker engine with
minikube docker-env
. docker build -t [name] .
in each ../sample.microservices.* projects except docs, where [name] is the image name given in the Chart.yaml file found in the relevantchart
directory for the project. For reference, the image names are mapped as follows:- sample.microservices.web-app:
web-application
- sample.microservices.vote:
microservice-vote
- sample.microservices.schedule:
microservice-schedule
- sample.microservices.speaker:
microservice-speaker
- sample.microservices.session:
microservice-session
- sample.microservices.web-app:
- Deploy each microservice from its root directory with the following helm install command.
- sample.microservices.web-app:
helm install --name=web-app chart/web-application
- sample.microservices.vote:
helm install --name=vote chart/microservice-vote
- sample.microservices.schedule:
helm install --name=schedule chart/microservice-schedule
- sample.microservices.speaker:
helm install --name=speaker chart/microservice-speaker
- sample.microservices.session:
helm install --name=session chart/microservice-session
- sample.microservices.web-app:
- Use
kubectl get ing
to determine the address of theweb-application-ingress
. Open this location in a web browser to access the sample.
Once you've made changes to the source code you'll want to rebuild and redeploy the new modules. See this topic for some notes about redeployment. You can also explore adding security to the application with OpenID Connect and JSON Web Tokens (JWT).