mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -29,8 +29,8 @@ def prepare_tile_gen(c):
|
|||||||
|
|
||||||
for file in [
|
for file in [
|
||||||
'prepare-virtualenv.sh',
|
'prepare-virtualenv.sh',
|
||||||
'run_planet.sh',
|
'planetiler_planet.sh',
|
||||||
'run_monaco.sh',
|
'planetiler_monaco.sh',
|
||||||
'gen_monaco.sh',
|
'gen_monaco.sh',
|
||||||
]:
|
]:
|
||||||
put(
|
put(
|
||||||
@@ -55,7 +55,10 @@ def prepare_http_host(c):
|
|||||||
@click.option('--user', help='SSH user (if not in .ssh/config)')
|
@click.option('--user', help='SSH user (if not in .ssh/config)')
|
||||||
@click.option('--tile-gen', is_flag=True, help='Install tile-gen task')
|
@click.option('--tile-gen', is_flag=True, help='Install tile-gen task')
|
||||||
@click.option('--http-host', is_flag=True, help='Install http-host task')
|
@click.option('--http-host', is_flag=True, help='Install http-host task')
|
||||||
def main(hostname, user, port, tile_gen, http_host):
|
@click.option(
|
||||||
|
'--skip-shared', is_flag=True, help='Skip the shared installtion step (useful for development)'
|
||||||
|
)
|
||||||
|
def main(hostname, user, port, tile_gen, http_host, skip_shared):
|
||||||
if not click.confirm(f'Run script on {hostname}?'):
|
if not click.confirm(f'Run script on {hostname}?'):
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -82,7 +85,8 @@ def main(hostname, user, port, tile_gen, http_host):
|
|||||||
port=port,
|
port=port,
|
||||||
)
|
)
|
||||||
|
|
||||||
# prepare_shared(c)
|
if not skip_shared:
|
||||||
|
prepare_shared(c)
|
||||||
|
|
||||||
if tile_gen:
|
if tile_gen:
|
||||||
prepare_tile_gen(c)
|
prepare_tile_gen(c)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
java -Xmx1g \
|
java -Xmx1g \
|
||||||
-jar /data/ofm/tile_gen/planetiler.jar \
|
-jar /data/ofm/tile_gen/planetiler.jar \
|
||||||
`# Download the latest planet.osm.pbf from s3://osm-pds bucket` \
|
`# Download the latest osm.pbf from s3://osm-pds bucket` \
|
||||||
--area=monaco --download \
|
--area=monaco --download \
|
||||||
`# Accelerate the download by fetching the 10 1GB chunks at a time in parallel` \
|
`# Accelerate the download by fetching the 10 1GB chunks at a time in parallel` \
|
||||||
--download-threads=10 --download-chunk-size-mb=1000 \
|
--download-threads=10 --download-chunk-size-mb=1000 \
|
||||||
|
|||||||
Reference in New Issue
Block a user