-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.sh
executable file
·52 lines (39 loc) · 1.04 KB
/
build.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
if [ -f .env ]; then
source .env
fi
export DEBIAN_FRONTEND=noninteractive
sudo apt-get upgrade docker-engine -y
sudo service docker restart
docker pull daald/ubuntu32:trusty
docker pull tomcat:8-jre8
docker pull debian:jessie
docker pull bmorton/pghero
pushd ./powa-web
docker build -t onec/powa-web .
popd
pushd ./postgres
docker build -t onec/postgres:9.4 -f Dockerfile.94 .
docker build -t onec/postgres:9.5 -f Dockerfile.95 .
popd
pushd ./postgres/cluster
docker build -t onec/postgres-citus:5.0-9.5 -f Dockerfile.95.Citus .
popd
pushd ./pgstudio
docker build -t onec/pgstudio:latest .
popd
pushd ./pgbadger
docker build -t onec/pgbadger .
popd
pushd ./barman
docker build -t onec/barman .
popd
pushd ./barman/postgres
echo "build barman postgres"
docker build -t onec/postgres:9.4-barman -f Dockerfile.94 .
docker build -t onec/postgres:9.5-barman -f Dockerfile.95 .
popd
sleep 2
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
#docker network create -d bridge pgsteroids
#docker-compose -f docker-compose-94.yml build