Dockerfile for OSMData generation without hcloud
platform requirement and website part.
docker volume create planet_data # > 160 GB
docker volume create osmdata_data
docker volume create robot_data # > 30 GB
docker run -dit \
--name osmdata \
-v osmdata_data:/data \
-v planet_data:/mnt/data \
-v robot_data:/home/robot \
rnicrosoft/osmdata
Access the shell with
docker exec -it <container_id> /bin/bash
To transfer files or directories, see docker cp
For the first run, execute
This step had been done in docker image building stage due to network connectivity reason in some regions.
To update the packages, please refer to the script inside./tmp/init.sh
To update planet and osmdata (for details, see run-update.sh)
cd /home/robot/ # to avoid permission fail of temp files
su -c run-update.sh [-p] [JOBS...] robot
Obtain the output data in <robot_data>/data
, or see logs in <robot_data>/log
if error occurs.
Default timezone is Asia/Shanghai
.
Tested with a 16 GB RAM machine.