-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal-env.sh
executable file
·30 lines (21 loc) · 1.16 KB
/
local-env.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
set -e
mvn package
./mkdockers.sh
docker start pg gs nginx
PASSWORD=tpg
set +e
docker stop traffic-viewer
docker rm traffic-viewer
set -e
docker run -d -p 8081:8080 --link pg:pg -e TRAFFIC_VIEWER_DB_URL=jdbc:postgresql://pg:5432/tpg -e TRAFFIC_VIEWER_DB_USER=tpg -e TRAFFIC_VIEWER_DB_PASSWORD=$PASSWORD -e GEOLADRIS_MINIFIED=true --name traffic-viewer fergonco/traffic-viewer
set +e
docker stop traffic-viewer-datagatherer
docker rm traffic-viewer-datagatherer
set -e
docker run -d -p 8084:8080 --link pg:pg -v /var/traffic-viewer/:/var/traffic-viewer -e TRAFFIC_VIEWER_DB_URL=jdbc:postgresql://pg:5432/tpg -e TRAFFIC_VIEWER_DB_USER=tpg -e TRAFFIC_VIEWER_DB_PASSWORD=$PASSWORD -e TRAFFIC_VIEWER_CONFIGURATION_FOLDER=/var/traffic-viewer --name traffic-viewer-datagatherer fergonco/traffic-viewer-datagatherer
set +e
docker stop traffic-viewer-dbstatus
docker rm traffic-viewer-dbstatus
set -e
docker run -d -p 8082:8080 --link pg:pg -e TRAFFIC_VIEWER_DB_URL=jdbc:postgresql://pg:5432/tpg -e TRAFFIC_VIEWER_DB_USER=tpg -e TRAFFIC_VIEWER_DB_PASSWORD=$PASSWORD --name traffic-viewer-dbstatus fergonco/traffic-viewer-dbstatus
echo 'Navigate to http://localhost/border-rampage-docker/'