Quick Install - Identity Management, Operator, Microservices Workshops
Clone the repo example-bank if you haven't yet
$ git clone https://github.com/IBM/example-bank
$ cd example-bank/scriptsLog 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_EMAILCreate 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-credentialsThen 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_KEYLog 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-bankDeploy 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 createdCreate secrets using the script below. This creates the necessary secrets in your OpenShift cluster
$ ./createsecrets.sh $MGMTEP $APIKEYDeploy a job that sets the schema for your database.
$ cd ..
$ oc apply -f data_model/job.yamlDeploy 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.yamlLast updated
Was this helpful?