File tree Expand file tree Collapse file tree 4 files changed +20
-2
lines changed
Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 11
2+ RELTMPDIR =/tmp/release.$(CO_VERSION )
3+ RELFILE =/tmp/postgres-operator.$(CO_VERSION ) .tar.gz
4+
25pgo :
36 cd client && go build -o $(GOBIN ) /pgo pgo.go
47clean :
@@ -13,6 +16,18 @@ lsimage:
1316 docker tag lspvc crunchydata/lspvc:$(CO_BASEOS ) -$(CO_VERSION )
1417all :
1518 make operatorimage
19+ make lsimage
20+ make pgo
21+ push :
22+ docker push crunchydata/lspvc:$(CO_IMAGE_TAG )
23+ docker push crunchydata/postgres-operator:$(CO_IMAGE_TAG )
24+ release :
25+ rm -rf $(RELTMPDIR ) $(RELFILE )
26+ mkdir $(RELTMPDIR )
27+ cp $(GOBIN ) /pgo $(RELTMPDIR )
28+ cp $(COROOT ) /examples/.pgo.yaml $(RELTMPDIR )
29+ cp $(COROOT ) /examples/.pgo.lspvc-template.json $(RELTMPDIR )
30+ tar czvf $(RELFILE ) -C $(RELTMPDIR ) .
1631default :
1732 all
1833
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ export GOPATH=$HOME/odev
4040export GOBIN=$GOPATH/bin
4141export PATH=$PATH:$GOBIN
4242export COROOT=$GOPATH/src/github.com/crunchydata/postgres-operator
43+ export CO_BASEOS=centos7
44+ export CO_VERSION=1.0.0
45+ export CO_IMAGE_TAG=$CO_BASEOS-$CO_VERSION
4346....
4447
4548Then execute these commands to build the project structure:
@@ -114,8 +117,8 @@ ThirdPartyResources.
114117The *pgo* client requires two configuration files be copied
115118to your $HOME as follows:
116119....
117- cp $COROOT/examples/sample .pgo.yaml $HOME/.pgo.yaml
118- cp $COROOT/examples/lspvc-template.yaml $HOME/.pgo.lspvc-template.json
120+ cp $COROOT/examples/.pgo.yaml $HOME
121+ cp $COROOT/examples/.pgo. lspvc-template.yaml $HOME
119122vi $HOME/.pgo.yaml
120123....
121124
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments