Added untested script to fill geocoder

This commit is contained in:
Stefan Verhoeven 2017-04-03 22:55:37 +02:00
parent bbf2c54325
commit baf018ce67

10
fill_geocoder.sh Normal file
View File

@ -0,0 +1,10 @@
# See https://github.com/CartoDB/data-services/issues/228#issuecomment-280037353
# Not run during Docker build phase as it's 5Gb of downloads
cd /data-services/geocoder && \
./geocoder_download_dumps && \
./geocoder_restore_dump geocoder geocoder db_dumps/*.sql
rm -r db_dumps
chmod +x geocoder_download_patches.sh geocoder_apply_patches.sh
./geocoder_download_patches.sh
./geocoder_apply_patches.sh geocoder geocoder data_patches/*.sql
rm -r data_patches