Skip to content

Latest commit

 

History

History
136 lines (90 loc) · 3.4 KB

README.md

File metadata and controls

136 lines (90 loc) · 3.4 KB

Please go to https://github.com/ocp-power-demos/sock-shop-demo for the latest code.

Purpose

The purpose of this application is to use a reference microservices demo to show a real-life multiarchitecture compute.

Applications

  1. front-end
  2. orders
  3. payment
  4. user user-db is Intel only.
  5. catalogue catalogue-db is Intel only.
  6. cart
  7. shipping
  8. queue-master

The catalogue and user have a built-in wait to READY as the dependent databases are started up.

Deployment

fyre

To deploy to fyre, use the following:

  1. Update manifests/overlays/fyre/env.secret with username and password:
username=
password=
  1. Build sock shop for fyre:
❯ kustomize build manifests/overlays/fyre | oc apply -f - 
  1. Destroy sock shop for fyre:
❯ kustomize build manifests/overlays/fyre | oc delete -f - 

multiarch compute

To deploy to a multiarch compute cluster, use the following:

  1. Update manifests/base/env.secret with username and password:
username=
password=
  1. Build sock shop for multi:
❯ kustomize build manifests/overlays/multi | oc apply -f - 
  1. Destroy sock shop for multi:
❯ kustomize build manifests/overlays/multi | oc delete -f - 

Using the application

  1. Get the route to the host
❯ oc get routes -n sock-shop
NAME        HOST/PORT                                                 PATH   SERVICES    PORT   TERMINATION   WILDCARD
sock-shop   sock-shop.apps.demo.xyz          front-end   8079   edge/None     None
  1. Navigate to https://sock-shop.apps.demo.xyz

  2. Pick a test user from User Accounts

Have fun and use it.

Images

The applications are compiled into images that are hosted at quay.io/repository/cbade_cs/openshift-demo. There is a manifest-listed image for each application.

To build the images, use:

amd64

ARCH=amd64
REGISTRY=quay.io/repository/cbade_cs/openshift-demo
make cross-build-amd64

All other arches

ARCH=ppc64le
REGISTRY=quay.io/repository/cbade_cs/openshift-demo
make cross-build-amd64

To push the manifest-listed images, use:

REGISTRY=quay.io/repository/cbade_cs/openshift-demo
ARM_REGISTRY=quay.io/repostiroy/pbastide_rh/openshift-demo
APP=front-end
make push-ml

The architecture is:

image.png

The application looks like:

socks-orders.png

Using

Please login in via the https route to sock-shop and register a new user.

Testing the Multiarchitecture Compute

  1. e2e-test
  2. load-test

Thank you to the WeaveWorks team and supporters.

References

  1. https://microservices-demo.github.io/
  2. https://medium.com/ibm-cloud/tracing-and-profiling-microservices-application-deployed-on-ibm-cloud-private-fe1f4c274329