forked from saule1508/pgcluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·26 lines (24 loc) · 739 Bytes
/
build.sh
File metadata and controls
executable file
·26 lines (24 loc) · 739 Bytes
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
#!/bin/bash
DOCKER_REGISTRY=192.168.1.57:5000
VER=`cat version.txt`
# remove volumes so we start from scratch
docker volume ls | grep pgcluster | awk '{print $2}' | xargs docker volume rm
docker build -t pg:${VER} --no-cache=false -f postgres/Dockerfile ./postgres
if [ $? -eq 0 ] ; then
echo pushing to local registry
docker tag pg:$VER $DOCKER_REGISTRY/pg:$VER
docker push $DOCKER_REGISTRY/pg:$VER
fi
docker build -t pgpool:${VER} -f pgpool/Dockerfile ./pgpool
if [ $? -eq 0 ] ; then
echo pushing to local registry
docker tag pgpool:$VER $DOCKER_REGISTRY/pgpool:$VER
docker push $DOCKER_REGISTRY/pgpool:$VER
fi
thisdir=$(pwd)
cd manager/build
./build.bash
cd $thisdir
cd test_services/nodejs-dbinserter/
./build.bash
cd $thisdir