-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·28 lines (26 loc) · 879 Bytes
/
build.sh
File metadata and controls
executable file
·28 lines (26 loc) · 879 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
27
28
#!/bin/bash
# unset following variable if you don't need a registry
#DOCKER_REGISTRY=192.168.1.57:5000
unset DOCKER_REGISTRY
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 ] && [ ! -z $DOCKER_REGISTRY ] ; 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 ] && [ ! -z $DOCKER_REGISTRY ] ; 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