nocalhost / bookinfo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Develop bookinfo with nocalhost

This is a demo project for nocalhost. Bookinfo is from Istio samples(https://github.com/istio/istio/tree/master/samples/bookinfo).

Micro Services

Bookinfo is a typical microservice architecture application, which consists of 5 services:

Every service has its different program language and runtime environment. All of them had been configured to use docker as container runtime, you can find Dockerfile in their corresponding repository.

Helm

A helm chart in this repository is prepared for one command installing. 5 Deployments witch 2 replica pods for 5 microservices are main skeleton of this chart.

You can install the chart by this command: helm install ./charts/bookinfo, but if you want to try nocalhost, we recommend you do this with nocalhost. We will give step-by-step QuickStart later.

What we changed compared to istio bookinfo?

We commit some changes to demonstrate nocalhost better. Here are some main changes:

  • Simplified different version of reviews service to one version. Nocalhost does not target on how to manage service traffic or canary deployment.
  • Splitted source codes from mono-repo to five independent repositories. In reality, diffrent microservices are developed by diffrent teams with different access rules.
  • Changed the framework of reviews service to spring-boot. Nothing but everyone loves spring-boot.
  • Configured GitHub Action for every microservice to auto build Docker images.
  • Added a .nocalhost directory to support development with nocalhost.

About .nocalhost directory

.nocalhost is a directory in the root of repository which stores the configurations of nocalhost. In this case, the file config.yaml: https://github.com/nocalhost/bookinfo/blob/main/.nocalhost/config.yaml

How to start?

https://nocalhost.dev/docs/quick-start/

Contribute

https://github.com/nocalhost/nocalhost/blob/main/CONTRIBUTING.md

About


Languages

Language:Mustache 100.0%