Digital Developer Conference: Hybrid Cloud
  • Introduction
  • Getting Started
    • Pre-work
  • Threat Modeling & Identity Management
    • Lecture
      • Threat Modeling
      • Identity Management
      • Prerequisites
    • Lab 1
      • Clone the repo
      • Creating App ID in IBM Cloud
      • Building the front end service
      • Deploying to OpenShift
      • Test the Simulator
  • Operator Workshop
    • Lecture
      • Introduction
    • Lab 2
      • Install the PostgreSQL Operator
      • Create an instance of a database
      • Load the schema
      • Expose and verify
  • Microservice Workshop
    • Lecture
      • Introduction
      • Prerequisites
    • Lab 3
      • Part 1
      • Part 2
  • Microservice Workshop (OSS)
    • Lecture
      • Introduction
      • Prerequisites
    • Lab
      • Database setup
      • Part 1
      • Part 2
  • Serverless Workshop
    • Introduction
      • Example Bank App Architecture
      • Serverless
      • Prerequisites
      • Quick Install - Identity Management, Operator, Microservices Workshops
    • Lab 4
      • Installing OpenShift Serverless
      • Installing Knative Serving
      • Clone the repo
      • Create an admin scoped user
      • Building the example serverless application
      • Configure Deployment file
      • Deploying to OpenShift Serverless
      • Test the Serverless App
      • Modify Serverless App
      • Conclusion
  • Service Mesh Workshop
    • ServiceMesh Lab
  • Pipelines (Tekton) Workshop
    • Lecture
      • What is tekton?
      • CI/CD
      • Explain tasks and pipelines
    • Lab 6
      • Cluster Setup
      • Install Pipeline
  • Resources
    • IBM Developer
Powered by GitBook
On this page

Was this helpful?

  1. Serverless Workshop
  2. Introduction

Quick Install - Identity Management, Operator, Microservices Workshops

PreviousPrerequisitesNextLab 4

Last updated 4 years ago

Was this helpful?

Clone the repo example-bank if you haven't yet

$ git clone https://github.com/IBM/example-bank
$ cd example-bank/scripts

Log in your IBM Cloud account with the ibmcloud cli

Make sure to use your personal account when it asks you.

$ ibmcloud login -u YOUR_IBM_CLOUD_EMAIL

Create an App ID instance using the script.

$ ./createappid.sh

App ID instance created and configured
Management server: https://**.appid.cloud.ibm.com/management/v4/**
Api key:           YOUR_API_KEY
Auto-generated
appid-example-bank-credentials

Then export the App ID instance's management server and the API key.

$ export MGMTEP=https://**.appid.cloud.ibm.com/management/v4/**
$ export APIKEY=YOUR_API_KEY

Log in with the OpenShift cluster provided for you using the OpenShift console. On the upper right corner, click your account and then click on Copy Login Command. This should open a new window and show you the command to login with the oc cli

Create a project called example-bank

$ oc new-project example-bank

Deploy a Postgres instance in your OpenShift cluster

$ ./deploy-db.sh

clusterserviceversion.operators.coreos.com/postgresql-operator.v0.1.1 created
subscription.operators.coreos.com/postgresql-operator-dev4devs-com created
operatorgroup.operators.coreos.com/example-bank-rgc7j unchanged
deployment.apps/postgresql-operator created
database.postgresql.dev4devs.com/creditdb created

Make sure the database.postgresql.dev4devs.com/creditdb was deployed. If not, deploy it manually using the yaml file

$ oc apply -f creditdb.yaml

Create secrets using the script below. This creates the necessary secrets in your OpenShift cluster

$ ./createsecrets.sh $MGMTEP $APIKEY

Deploy a job that sets the schema for your database.

$ cd ..
$ oc apply -f data_model/job.yaml

Deploy components from previous labs with prebuilt container images

$ oc apply -f deployment.yaml -f bank-app-backend/user-service/deployment.yaml -f bank-app-backend/transaction-service/deployment.yaml
IBM Cloud dashboard
OpenShift Console