Configure the ORDER database required for the CustomerOrderResource application.
This section covers how to deploy a DB2 container to Red Hat OpenShift that has been pre-configured with the ORDER database required for the CustomerOrderResource application.
- Issue the following command to clone the repository that contains the required files
git clone https://github.com/ibm-cloud-architecture/appmod-liberty-toolkit
yamlfiles for the
Serviceare in the
db2folder of the repository
cd appmod-liberty-toolkitcd db2
- Issue the following commands to create a
oc create ns db2oc project db2oc create serviceaccount mysvcacct -n db2oc adm policy add-scc-to-user privileged system:serviceaccount:db2:mysvcacctoc apply -f db2-dc.yamloc apply -f db2-service.yaml
The DB2 database will take a few minutes to start and will then be accessible in the Cluster at
- If you want to expose the database outside of the cluster, use the