File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed
hugo/content/installation Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1515
1616echo " Getting project dependencies..."
1717
18- sudo yum -y install mercurial golang
19- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
20- # go get github.com/tools/godep
18+ # sudo yum -y install mercurial golang
19+ which go
20+ if [ $? -eq 1 ]; then
21+ echo " installing golang..."
22+ sudo yum -y install golang
23+ fi
24+
25+ which dep
26+ if [ $? -eq 1 ]; then
27+ echo " installing dep"
28+ curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
29+ fi
30+
2131go get github.com/blang/expenv
2232
23- dep ensure
24- # godep restore
33+ # dep ensure
2534
2635DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
2736
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ export PGO_CA_CERT=$COROOT/conf/apiserver/server.crt
2626export PGO_CLIENT_CERT=$COROOT/conf/apiserver/server.crt
2727export PGO_CLIENT_KEY=$COROOT/conf/apiserver/server.key
2828alias setip='export CO_APISERVER_URL=https://`kubectl get service postgres-operator -o=jsonpath="{.spec.clusterIP}"`:8443'
29- alias alog='kubectl log `kubectl get pod --selector=name=postgres-operator -o jsonpath="{.items[0].metadata.name}"` -c apiserver'
30- alias olog='kubectl log `kubectl get pod --selector=name=postgres-operator -o jsonpath="{.items[0].metadata.name}"` -c operator'
29+ alias alog='kubectl logs `kubectl get pod --selector=name=postgres-operator -o jsonpath="{.items[0].metadata.name}"` -c apiserver'
30+ alias olog='kubectl logs `kubectl get pod --selector=name=postgres-operator -o jsonpath="{.items[0].metadata.name}"` -c operator'
3131....
3232
3333When deploying on Openshift Container Platform, the CO_CMD environment
You can’t perform that action at this time.
0 commit comments