IBM Support

Batch downloading Cloud Pak for Data Assemblies for airgap installation

How To


Summary

Airgap install requires downloading of the assemblies, transfer them to cloud pak for data cluster's bastion/install host and then installing it. Depends on number of assemblies will be installed and the network download speed, the downloading will take many hours. The following script will help simplify the downloading multiple assemblies with single command.

Objective

Batch download the multiple cloud pak for data assemblies without manual interventions for Airgap installs.

Environment

Cloud Pak for Data 2.5, 3.x
OpenShift 3.11/4.3

Steps

You will need linux or MacOS Client system with internet access for downloading cloud pak for Data installer and assemblies. Some of the assemblies take 40GB to 100GB. So make sure you have sufficient disk space on this system(about 500GB).
Step 1. Download the installers and entitlement APIKEY
Cloud Pak for Data installer need to be downloaded from the IBM Passport Advantage(PPA) with client's account.
Step 2. Update the repo.yaml with APIKEY
Update the following repo.yaml file with your downloaded entitlement API key from myibm.ibm.com.
registry:
  - url: cp.icr.io/cp/cpd
    username: cp
    apikey: < Your APIKEY from myibm.ibm.com >
    name: base-registry
fileservers:
  - url: https://raw.github.com/IBM/cloud-pak/master/repo/cpd3
Step 3.  Create "cpd-batchdownload.sh" file withe following content
#!/bin/sh

repo=repo.yaml
catridge="lite wsl wml spss-modeler ds db2wh spark cde wkc dv"
targetdir="/data/cpd301"

for assembly in $catridge
do
echo "*****************\n Downloading Assembly $assembly \n******************\n\n"
./cpd-linux  preloadImages -r $repo  -a $assembly --action download --download-path ./$assembly
tar -cvf $assembly-airgap.tar ./$assembly
rm -rf $assembly
rm -rf cpd-linux-workspace
mv $assembly-airgap.tar $targetdir 
done
Update the "catridge" with all the assemblies you want to download and "targetdir" with the directory you want to copy the downloaded image tar.
Step 4:  Run the batch downloads
sh -x cpd-batchdownload.sh
This above command will provide the verbose messages of downloading of the Cloud pak for Data assemblies.

Document Location

Worldwide

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSHGYS","label":"IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m50000000ClUuAAK","label":"Installation"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
21 June 2020

UID

ibm16236892