Skip to content

Latest commit

 

History

History
125 lines (83 loc) · 5.82 KB

README.md

File metadata and controls

125 lines (83 loc) · 5.82 KB

Table of Contents generated with DocToc

Overview

This repository provides the IBM Catalog Management Plug-in for IBM Cloud Paks via its github releases. The plugin streamlines the deployment of IBM CloudPaks in a disconnected environment which was done earlier using cloudctl.

Download and verify software

There are two ways to obtain the plugin

Download from github release

  1. Download the gzipped tar archive for your OS from the assets in releases
  2. Download the corresponding .sig file for verification purposes

Download for your OS

Download from IBM container registry

The plugin is also provided in a container image cp.icr.io/cpopen/cpfs/ibm-pak:TAG where TAG should be replaced with the corresponding plugin version, for example cp.icr.io/cpopen/cpfs/ibm-pak:v1.16.1 will have v1.16.1 of the plugin.

The following command will create a container and copy the plug-ins for all the supported platforms in a directory, plugin-dir. You can specify any directory name and it will be created while copying. After copying, it will delete the temporary container. The plugin-dir will have all the binaries and other artifacts you find in a Github release and repo at IBM/ibm-pak. For example,

  1. If you use docker:
id=$(docker create cp.icr.io/cpopen/cpfs/ibm-pak:v1.16.1 - )
docker cp $id:/ibm-pak-plugin plugin-dir
docker rm -v $id
cd plugin-dir
  1. If you podman:
id=$(podman create cp.icr.io/cpopen/cpfs/ibm-pak:v1.16.1 - )
podman cp $id:/ibm-pak-plugin plugin-dir
podman rm -v $id
cd plugin-dir

Check Certificate/Key Validity and Archives

Install the plugin

  1. Extract the downloaded plugin and copy to executable PATH.

NOTE:

  • While copying, the destination name must be oc-ibm_pak (On windows, name must be oc-ibm_pak.exe) and cannot be changed including the dash and the underscore. These special characters are used by the oc command to find and setup the plugin
  • On Mac before copying oc-ibm_pak-darwin-amd64 to /usr/local/bin/oc-ibm_pak or any directory in your PATH, refer to For macOS Catalina users
  • If /usr/local/bin is not accessible then place it in an accessible folder and put that folder in PATH
  • On windows, copy oc-ibm_pak-windows-amd64 to $HOME\AppData\Local\Microsoft\WindowsApps\oc-ibm_pak.exe or any directory and add this path to PATH environment variable.
  • See accompanying LICENSE file obtained on extracting for the allowed usage.

For example on Mac,

tar -xvf oc-ibm_pak-darwin-amd64.tar.gz
cp oc-ibm_pak-darwin-amd64 /usr/local/bin/oc-ibm_pak

For example on Windows (from PowerShell),

tar -xvf oc-ibm_pak-windows-amd64.tar.gz
Copy-Item oc-ibm_pak-windows-amd64 $HOME\AppData\Local\Microsoft\WindowsApps\oc-ibm_pak.exe

Verify that the installation was successful by issuing the below command

oc ibm-pak --help

Information about plugin's available commands is described in the doc.

Installing your IBM Cloud Pak by mirroring Cloud Pak images to a private container registry

Steps are described here. For more information about available CASE names and versions, see IBM: Product CASE to Application Version.

Starting with v1.8.0, the plug-in lays the foundation for eventual support for catalog-based mirroring. Information about catalog-based mirroring is described in the doc. At this time, catalog-based mirroring and oc-mirror tool usage is a Tech Preview feature, which may not be supported by all products.

For macOS Catalina users

Users on macOS Catalina might be prompted that oc-ibm_pak-darwin-amd64 is not a trusted application. There are two ways to get around this:

  • Open Finder, control-click the application oc-ibm_pak-darwin-amd64, choose Open from the menu, and then click Open in the dialog that appears. Enter your admin name and password to open the app if promoted.

  • Enable developer-mode for your terminal window, which will allow everything. Make sure you are OK with this approach:

    • Open Terminal, and enter:
      spctl developer-mode enable-terminal
    • Go to System Preferences -> Security & Privacy -> Privacy Tab -> Developer Tools -> Terminal : Enable
    • Restart all terminals

See https://support.apple.com/en-ca/HT202491 for more information

Support

To report an issue or get help please visit https://www.ibm.com/docs/en/cpfs?topic=support-opening-case