Use volumes path in docker compose and make wget silent

pull/45/head
Lukas Martinelli 2015-10-20 17:04:37 +02:00
rodzic 0f9ab08422
commit a1b4dcf7fc
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -19,7 +19,7 @@ postgis:
imposm3:
build: ./import/imposm3
volumes:
- ./volumes/imposm3:/data/import
- ./volumes/import:/data/import
volumes_from:
- cache
links:
@ -44,7 +44,7 @@ worker:
build: ./export/worker
volumes:
- ./open-streets.tm2source:/data/tm2source
- ./volumes/worker:/data/export
- ./volumes/export:/data/export
links:
- postgis:db
environment:
@ -57,6 +57,6 @@ worker:
tileserver:
build: ./tileserver
volumes:
- ./export:/data
- ./volumes/export:/data
ports:
- "8080:80"

Wyświetl plik

@ -20,7 +20,7 @@ readonly PG_CONNECT="postgis://$OSM_USER:$OSM_PASSWORD@$DB_HOST/$OSM_DB"
function download_pbf() {
local pbf_url=$1
wget --directory-prefix "$IMPORT_DATA_DIR" --no-clobber "$pbf_url"
wget -q --directory-prefix "$IMPORT_DATA_DIR" --no-clobber "$pbf_url"
}
function import_pbf() {