mirror of https://github.com/pelias/docker.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
866 B
24 lines
866 B
#!/bin/bash |
|
set -e; |
|
|
|
# per-source prepares |
|
function prepare_polylines(){ compose_run 'polylines' bash ./docker_extract.sh; } |
|
function prepare_interpolation(){ compose_run 'interpolation' bash ./docker_build.sh; } |
|
function prepare_placeholder(){ |
|
compose_run 'placeholder' npm run extract |
|
compose_run 'placeholder' npm run build |
|
} |
|
|
|
register 'prepare' 'polylines' 'export road network from openstreetmap into polylines format' prepare_polylines |
|
register 'prepare' 'interpolation' 'build interpolation sqlite databases' prepare_interpolation |
|
register 'prepare' 'placeholder' 'build placeholder sqlite databases' prepare_placeholder |
|
|
|
# prepare all the data to be used by imports |
|
function prepare_all(){ |
|
prepare_polylines & |
|
prepare_placeholder & |
|
wait |
|
prepare_interpolation |
|
} |
|
|
|
register 'prepare' 'all' 'build all services which have a prepare step' prepare_all
|
|
|