Install DB2 Warehouse on IBM Cloud Pak For Data by using cpd-cli

Complete this task to install DB2 Warehouse on IBM Cloud Pak For Data as your database by using cpd-ci.

About this task

For more information about DB2 Warehouse on IBM Cloud Pak For Data, see:

Procedure

  1. Download and install cpd-cli:
    1. Download cpd-cli.
    2. Extract and move folder to /Users/username.
      Note: Replace the username in the folder path with appropriate user name.
    3. Add the folder to path by using export PATH=/Users/username/cpd-cli-darwin-SE-11.3.0-52:$PATH.
    4. Open cpd-cli and plugin files in lib/darwin folder and right click each file to click Verify.
    5. cpd-cli manage restart-container
    6. restart docker
  2. Login to the OCP cluster.
    cpd-cli manage oc login --token=sha256~B2zPGaYcq8OjMmHfEdRTz0SfIForWpexhwUM --server=https://c106-e.us-south.containers.cloud.ibm.com:42171
  3. Add entitlement key.
    export IBM_ENTITLEMENT_KEY=ciOiJIUzI1NiJ9.eyJpcn0.P6EO8WX4JTFQPCT1imFzl2PtgHQImc2K
    
    cpd-cli manage add-icr-cred-to-global-pull-secret ${IBM_ENTITLEMENT_KEY}
  4. Install operators.
    cpd-cli manage apply-olm --release=4.5.3 --components=cpfs,cpd_platform,db2wh,dmc --cpd_operator_ns=cpd-operators
  5. Setup instance.
    cpd-cli manage setup-instance-ns --cpd_instance_ns=ibm-cpd --cpd_operator_ns=cpd-operators
  6. Create instances.
    cpd-cli manage apply-cr --components=cpfs,cpd_platform,db2wh,dmc --release=4.5.3 --cpd_instance_ns=ibm-cpd --block_storage_class=ibmc-block-gold --file_storage_class=ibmc-file-gold-gid --license_acceptance=true
    Component Operator API Instance
    cpfs IBM Cloud Pak foundational services CommonService  
    cpfs IBM NamespaceScope Operator Namespace Scope  
    cpfs Operand Deployment Lifecycle Manager OperandBindInfo OperandConfig OperandRegistry OperandRequest  
    cpd_platform Cloud Pak for Data Platform Operator Ibmcpd ibmcpd-cr
    ibmcpd-cr IBM Cert Manager Certificate Request Certificate Cert Manager Challenge ClusterIssuer Issuer Order  
    ibmcpd-cr IBM Zen Service ZenService ZenExtension  
    db2wh IBM Db2 BigSQL Db2uCluster Db2uHadr Db2uHelmMigration Db2whService Formation FormationLock  
    dmc IBM Db2 Data Management Console Dmc4ocp Dmcaddon Dmc  
    wml IBM WML Services WmlBase