Skip to content

Commit 1aa27ea

Browse files
additionnal infos
1 parent 248f260 commit 1aa27ea

File tree

1 file changed

+37
-19
lines changed

1 file changed

+37
-19
lines changed

README.md

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717

1818
# Overview
1919

20-
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](https://github.com/IBM/cloud-pak-cli).
20+
This repository provides the IBM Catalog Management Plug-in for IBM Cloud Paks via its github releases. The plugin streamlines the deployment of IBM Cloud Paks in a disconnected environment which was done earlier using [`cloudctl`](https://github.com/IBM/cloud-pak-cli).
2121

2222
## Download and verify software
2323

2424
There are two ways to obtain the plugin
2525

26-
- [Github Release](#download-from-github-release)
26+
- [GitHub Release](#download-from-github-release)
2727
- [Container image](#download-from-ibm-container-registry)
2828

29-
### Download from github release
29+
### Download from GitHub release
3030

3131
1. Download the gzipped tar archive for your OS from the assets in [releases](https://github.com/IBM/ibm-pak/releases)
3232
2. Download the corresponding `.sig` file for verification purposes
@@ -37,20 +37,20 @@ There are two ways to obtain the plugin
3737

3838
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.18.1` will have `v1.18.1` of the plugin.
3939

40-
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](https://github.com/IBM/ibm-pak). For example,
40+
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](https://github.com/IBM/ibm-pak). For example,
4141

42-
1. If you use docker:
42+
1. If you use `docker`:
4343

44-
```
44+
```bash
4545
id=$(docker create cp.icr.io/cpopen/cpfs/ibm-pak:v1.18.1 - )
4646
docker cp $id:/ibm-pak-plugin plugin-dir
4747
docker rm -v $id
4848
cd plugin-dir
4949
```
5050

51-
2. If you podman:
51+
1. If you use `podman`:
5252

53-
```
53+
```bash
5454
id=$(podman create cp.icr.io/cpopen/cpfs/ibm-pak:v1.18.1 - )
5555
podman cp $id:/ibm-pak-plugin plugin-dir
5656
podman rm -v $id
@@ -65,15 +65,19 @@ cd plugin-dir
6565

6666
## Install the plugin
6767

68-
1. Extract the downloaded plugin and copy to executable PATH.
68+
1. Extract the downloaded plugin from the archive.
69+
2. Rename the extracted executable file to `oc-ibm_pak` (On Windows, name must be `oc-ibm_pak.exe`).
70+
3. Move the `oc-ibm_pak` executable to a folder in your shell's `PATH` env var.
6971

7072
NOTE:
7173

72-
- 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
73-
- 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](#for-macos-catalina-users)
74+
- 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](https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/cli_tools/openshift-cli-oc#cli-extend-plugins).
75+
- 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](#for-macos-catalina-users)
7476
- If `/usr/local/bin` is not accessible then place it in an accessible folder and put that folder in PATH
75-
- 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.
76-
- See accompanying LICENSE file obtained on extracting for the allowed usage.
77+
- 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.
78+
- See accompanying [`LICENSE`](LICENSE) file obtained on extracting for the allowed usage.
79+
- Check that the plugin is found in the `PATH`, e.g. by running `which oc-ibm_pak` on Linux or macOS, or `where oc-ibm_pak` on Windows.
80+
- Check that the plugin is installed correctly by running `oc plugin list`.
7781

7882
For example on Mac,
7983

@@ -99,7 +103,7 @@ Information about plugin's available commands is described [in the doc](docs/com
99103

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

102-
Steps are described [here](https://www.ibm.com/docs/en/cloud-paks/1.0?topic=plugin-installing-by-connected-disconnected-mirroring).
106+
Steps are described in [IBM Cloud Paks documentation](https://www.ibm.com/docs/en/cloud-paks/1.0?topic=plugin-installing-by-connected-disconnected-mirroring).
103107
For more information about available CASE names and versions, see [IBM: Product CASE to Application Version](https://ibm.github.io/cloud-pak/).
104108

105109
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](docs/catalog-mirroring.md). At this time, catalog-based mirroring and `oc-mirror` tool usage is a **_Tech Preview_** feature, which may not be supported by all products.
@@ -112,14 +116,28 @@ Users on macOS Catalina might be prompted that `oc-ibm_pak-darwin-amd64` is not
112116

113117
- Enable developer-mode for your terminal window, which will allow everything. Make sure you are OK with this approach:
114118
- Open Terminal, and enter:
115-
```console
116-
❯ spctl developer-mode enable-terminal
119+
120+
```bash
121+
spctl developer-mode enable-terminal
117122
```
118-
- Go to System Preferences -> Security & Privacy -> Privacy Tab -> Developer Tools -> Terminal : Enable
123+
124+
- Go to System Preferences → Security & Privacy → Privacy Tab → Developer Tools → Terminal : Enable
119125
- Restart all terminals
120126

121-
_See https://support.apple.com/en-ca/HT202491 for more information_
127+
_See <https://support.apple.com/en-ca/HT202491> for more information_
128+
129+
## Temporary folder
130+
131+
The plugin will download files to a temporary folder.
132+
It uses the following folder locations, first non empty value will be used:
133+
134+
- `$TMPDIR`
135+
- `$TEMP`
136+
- `$TMP`
137+
- `/tmp`, `C:\Windows\Temp` on Windows.
138+
139+
If, for some reason there is not enough space in the temporary folder, you can set the `TMPDIR` environment variable to a different location with more space.
122140

123141
## Support
124142

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

0 commit comments

Comments
 (0)