Skip to content

Latest commit

 

History

History
executable file
·
29 lines (22 loc) · 2.14 KB

dev_test_local_minikube.md

File metadata and controls

executable file
·
29 lines (22 loc) · 2.14 KB

Deploying the sample directly to a local minikube installation

This is the simplest way for a developer to get the sample up and running locally.

Before you begin

  • Install a Git client to obtain the sample code.
  • Install Maven and a Java 8 JDK.
  • Install a Docker engine.

Install the Microservice Builder Sample application

  1. Install minikube.
  2. Install the Microservice Builder fabric - these are various services that run on top of Kubernetes.
  3. Enable ingress with the command minikube addons enable ingress.
  4. git clone the following projects:
    1. sample.microservicebuilder.web-app
    2. sample.microservicebuilder.vote
    3. sample.microservicebuilder.schedule
    4. sample.microservicebuilder.speaker
    5. sample.microservicebuilder.session
  5. mvn clean package in each ../sample.microservicebuilder.* projects except docs.
  6. docker build -t [name] . in each ../sample.microservicebuilder.* projects except docs, where [name] is the argument passed to utils.dockerBuild() in the Jenkinsfile in that project's root directory.
  7. Deploy each microservice from its root directory with the command kubectl apply -f manifests.
  8. Use kubectl get ing to determine the address of the web-application-ingress. Open this location in a web browser to access the sample.

Modifying 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).