c1e9943c48
* new file: docker/Dockerfile Dockerfile for pygeoapi * Using 0.0.0.0 in pygeoapi-config otherwise no docker for flask * ES and pygeoapi docker * Final file structure * generic port 5000 and localhost * sqlit3 suport in alpine and fixes on sqlite provider * B4 sync with upstream * Working composition problems with ES features * Cosmetic changes update to README.md * using load_es_data.py from github local openapi.yml * added docker pull only of pygeoapi * b4 rebase * Using 0.0.0.0 in pygeoapi-config otherwise no docker for flask * ES and pygeoapi docker * Final file structure * generic port 5000 and localhost * sqlit3 suport in alpine and fixes on sqlite provider * B4 sync with upstream * Cosmetic changes update to README.md * using load_es_data.py from github local openapi.yml * added docker pull only of pygeoapi * b4 rebase * updates and sync * missing proper local.config.yml * wait-for pygeoapi * sync with master config * deleted: docker/ES/wait-for-it.sh new file: docker/pygeoapi/docker-entrypoint.sh new file: docker/pygeoapi/run_pygeoapi.sh openapi.yml pygeoapi/provider/__sqlite.py Missing sh files * missing set +e * wait for ES to be yellow or green * More detailed Readme * new file: .gitignore * simple image docker * missing docker run * new file: Dockerfile new file: docker.config.yml new file: run_pygeoapi.sh Simple image * typos on README
22 lines
984 B
Bash
Executable File
22 lines
984 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Starting script to add geojson"
|
|
# move to the directory of this setup script
|
|
cd "$(dirname "$0")"
|
|
|
|
# for some reason even when port 9200 is open Elasticsearch is unable to be accessed as authentication fails
|
|
# a few seconds later it works
|
|
# incresing to 50s for wait in a slow system /_cluster/health?wait_for_status=yellow&timeout=50s
|
|
until $(curl -sSf -XGET --insecure 'http://localhost:9200/_cluster/health?wait_for_status=yellow' > /dev/null); do
|
|
printf 'No status yellow from ES, trying again in 10 seconds \n'
|
|
sleep 10
|
|
done
|
|
echo "Elastic search seems to be working - Adding ne_110m_populated_places_simple.geojson to ES"
|
|
|
|
python /load_es_data.py /usr/share/elasticsearch/data/ne_110m_populated_places_simple.geojson
|
|
|
|
echo "Seems that data was loaded"
|
|
|
|
# create a new index with the settings in es_index_config.json
|
|
#curl -v --insecure --user elastic:changeme -XPUT '0.0.0.0:9200/test?pretty' -H 'Content-Type: application/json' -d @es_index_config.json
|