Skip to content

Commit 277147c

Browse files
author
Power Cloud Robot
authored
Merge pull request #157 from sudeeshjohn/script
Updating documentation
2 parents 1375d1e + 962b7c6 commit 277147c

File tree

1 file changed

+6
-1
lines changed
  • samples/convert-upload-images-powervs

1 file changed

+6
-1
lines changed

samples/convert-upload-images-powervs/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,16 @@ export RHEL_SUBSCRIPTION_USERNAME="<redhat subscription username>" (only if you
4949
export RHEL_SUBSCRIPTION_PASSWORD="<redhat subscription password>" (only if you are creating RHEL image)
5050
export RHEL_ROOT_PASSWORD="<RHEL root password>" (if the user doesnt set this variable, the script will generate a password. Only if you are creating RHEL image)
5151
```
52-
4. Running the script
52+
4a. Running the script directly
5353
```shell
5454
Example:
5555
./convert-upload-images-powervs --service-name my-powervs-service --region us-south --cos-bucket my-cos-bucket --cos-resource-group my-resource-group --cos-instance-name my-cos-instance --rhel-url https://access.cdn.redhat.com/content/origin/files/sha256/4e/xxxxxx/rhel-8.3-ppc64le-kvm.qcow2\?user\=xxxxxxxxxxx\&_auth_\=xxxxxxx --rhcos-url https://mirror.openshift.com/pub/openshift-v4/ppc64le/dependencies/rhcos/4.7/4.7.0/rhcos-4.7.0-ppc64le-openstack.ppc64le.qcow2.gz
5656
```
57+
4b. Running the script from a container
58+
```shell
59+
Example:
60+
docker run -it -e IBMCLOUD_API_KEY=$IBMCLOUD_API_KEY -e RHEL_SUBSCRIPTION_USERNAME=$RHEL_SUBSCRIPTION_USERNAME -e RHEL_SUBSCRIPTION_PASSWORD=$RHEL_SUBSCRIPTION_PASSWORD -e RHEL_ROOT_PASSWORD=$RHEL_ROOT_PASSWORD quay.io/powercloud/image-upload:0.1 --service-name my-powervs-service --region us-south --cos-bucket my-cos-bucket --cos-resource-group my-resource-group --cos-instance-name my-cos-instance --rhel-url https://access.cdn.redhat.com/content/origin/files/sha256/4e/xxxxxx/rhel-8.3-ppc64le-kvm.qcow2\?user\=xxxxxxxxxxx\&_auth_\=xxxxxxx --rhcos-url https://mirror.openshift.com/pub/openshift-v4/ppc64le/dependencies/rhcos/4.7/4.7.0/rhcos-4.7.0-ppc64le-openstack.ppc64le.qcow2.gz
61+
```
5762
5863
!!! Note
5964
User needs to provide any of RHEL/RHCOS urls.

0 commit comments

Comments
 (0)