File tree Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 1
- ## Installing unreleased OCS build
1
+ ## Installing unreleased ODF build
2
2
3
3
### Requirements
4
4
- [ jq] ( https://stedolan.github.io/jq/ ) should be present
5
+ - Export an environment variable by name ` ODF_PULL_SECRET ` having the odf pull secret.
6
+
7
+ For example:
8
+
9
+ ```
10
+ # Edit bashrc
11
+ bash vi ~/.bashrc
12
+
13
+ #Add pull secret ODF_PULL_SECRET
14
+ export ODF_PULL_SECRET=<odf-pull-secret>
15
+ ```
16
+ _Note: Make sure to use `ODF_PULL_SECRET` as the name of the variable in order to get the script working_
17
+
5
18
6
19
### Installation
7
20
13
26
2 . Login to your OCP cluster
14
27
3 . Run the file as ` ./install-ocs.sh `
15
28
4 . Pass the token secret when asked and wait for script to finish.
16
- 5 . Go to the console > Operator hub > Storage > Choose the non-GA version to install OCS
29
+ 5 . Go to the console > Operator hub > Storage > Choose the non-GA version to install ODF
17
30
18
31
Note: _ It can take upto 7-10 minutes to get the pull secret updated and hence the ODF catalog to appear in hub_
19
32
20
- ## Installing m4.2xlarge cluster for OCS
33
+ ## Installing m4.2xlarge cluster for ODF
21
34
22
35
1 . Install the ` openshift-installer `
23
36
2 . Create install config
@@ -37,4 +50,4 @@ Save the changes.
37
50
./openshift-installer create cluster --dir my-dir
38
51
```
39
52
40
- Note : These machines incur more cost hence use wisely. Destroy the cluster when not in use by ` openshift-installer destroy cluster --dir mydir `
53
+ _ Note : These machines incur more cost hence use wisely. Destroy the cluster when not in use by ` openshift-installer destroy cluster --dir mydir ` _
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ install_ocs() {
4
4
echo " Updating the pull secret..."
5
5
6
6
oc get -n openshift-config secret/pull-secret -ojson | jq -r ' .data.".dockerconfigjson"' | base64 -d | jq > secret.json
7
- jq --arg secret $PULL_SECRET ' .auths."quay.io"={auth: $secret, email: ""}' secret.json > temp-secret.json
7
+ jq --arg secret $ODF_PULL_SECRET ' .auths."quay.io"={auth: $secret, email: ""}' secret.json > temp-secret.json
8
8
oc set data secret/pull-secret -n openshift-config --from-file=.dockerconfigjson=temp-secret.json
9
9
10
10
sleep 1m
@@ -32,11 +32,6 @@ install_ocs() {
32
32
EOF
33
33
}
34
34
35
- echo " Enter the pull secret"
36
35
37
- read PULL_SECRET
38
-
39
- if [[ ! -z " $PULL_SECRET " ]]; then
40
- install_ocs
41
- fi
36
+ install_ocs
42
37
You can’t perform that action at this time.
0 commit comments