forked from aroute/cp4d35
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path05discoverydeploy.sh
executable file
·33 lines (28 loc) · 1009 Bytes
/
05discoverydeploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
cat <<EOF >>discovery-override.yaml
wdRelease:
deploymentType: Development
EOF
cd cpd-cli-workspace/
rm -rf *
cd ..
./cpd-cli adm --repo ./repo.yaml --assembly watson-discovery --arch x86_64 --accept-all-licenses --namespace zen --verbose
./cpd-cli adm --repo ./repo.yaml --assembly watson-discovery --arch x86_64 --accept-all-licenses --namespace zen --verbose --apply
export REG=$(oc get route image-registry -n openshift-image-registry -o jsonpath='{.spec.host}')
./cpd-cli install \
--repo repo.yaml \
--assembly watson-discovery \
--arch x86_64 \
--namespace zen \
--storageclass ibmc-block-gold \
--accept-all-licenses \
--transfer-image-to ${REG}/zen \
--cluster-pull-prefix image-registry.openshift-image-registry.svc:5000/zen \
--insecure-skip-tls-verify \
--target-registry-username $(oc whoami) \
--target-registry-password $(oc whoami -t) \
--latest-dependency \
--override discovery-override.yaml \
--verbose
./cpd-cli status --assembly watson-discovery --namespace zen