Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pelias/docker into 93-war…
Browse files Browse the repository at this point in the history
…nDATA_DIR
  • Loading branch information
dr0i committed May 20, 2019
2 parents c7913ae + db97712 commit 10ecbb7
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 12 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Once you have successfully completed a small build you can use this as a base to

You will need to have `docker` and `docker-compose` installed before continuing. If you are not using the latest version, please mention that in any bugs reports.

## Requirements for Mac OSX:
## Requirements for Mac OSX
- install GNU coreutils with [Homebrew](https://brew.sh/): `brew install coreutils`.
- Max-out Docker computing resources( `Memory-RAM and CPUs-Cores` ) dedicated to Docker in `Docker > Preferences > Advanced`.

Expand All @@ -25,20 +25,22 @@ Scripts can easily download tens of GB of geographic data, so ensure you have en

At least 8GB RAM is required.

## Installing the Pelias command
## Installing the Pelias helper script

This repository makes use of a helper script to make basic management of the Pelias Docker images easy.

If you haven't done so already, you will need to ensure the `pelias` command is available on your path.

You can find the `pelias` file in the root of this repository.

Advanced users may have a preferance how this is done on their system, but a basic example would be to do something like:
Advanced users may have a preference how this is done on their system, but a basic example would be to do something like:

```bash
git clone https://github.com/pelias/docker.git ~/pelias
ln -s ~/pelias/pelias /usr/local/bin/pelias
```

Once the command is correctly installed you should be able to run the following command to confim the pelias command is available on your path:
Once the command is correctly installed you should be able to run the following command to confirm the pelias command is available on your path:

```bash
which pelias
Expand Down
1 change: 1 addition & 0 deletions cmd/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function download_csv(){ compose_run 'csv-importer' './bin/download'; }
register 'download' 'wof' '(re)download whosonfirst data' download_wof
register 'download' 'oa' '(re)download openaddresses data' download_oa
register 'download' 'osm' '(re)download openstreetmap data' download_osm
register 'download' 'geonames' '(re)download geonames data' download_geonames
register 'download' 'tiger' '(re)download TIGER data' download_tiger
register 'download' 'transit' '(re)download transit data' download_transit
register 'download' 'csv' '(re)download csv data' download_csv
Expand Down
4 changes: 4 additions & 0 deletions images/elasticsearch/2.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ FROM elasticsearch:2.4
# configure plugins
RUN /usr/share/elasticsearch/bin/plugin install analysis-icu
RUN /usr/share/elasticsearch/bin/plugin install cloud-aws

# elasticsearch config
ADD elasticsearch.yml /usr/share/elasticsearch/config/
RUN chown elasticsearch:elasticsearch config/elasticsearch.yml
8 changes: 8 additions & 0 deletions images/elasticsearch/2.4/elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bootstrap.memory_lock: true
network.host: 0.0.0.0
http.port: 9200
node.master: true
node.data: true
threadpool:
bulk:
queue_size: 1000
2 changes: 1 addition & 1 deletion projects/france/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"datapath": "/data/whosonfirst",
"importVenues": false,
"importPostalcodes": true,
"importPlace": [ "136253037" ]
"importPlace": [ "136253037", "85633147" ]
}
}
}
8 changes: 8 additions & 0 deletions projects/planet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ The minimum configuration required in order to run this project are [installing

Please ensure that's all working fine before continuing.

## Acceptance tests

This project uses [git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules) to pull in the [pelias/acceptance-test](https://github.com/pelias/acceptance-tests/) repository to allow testing full planet builds.

### Caveats

A full planet build will require a street polylines file generated with Valhalla. Please see [the documentation](https://github.com/pelias/polylines/wiki/Generating-polylines-from-Valhalla) on how to perform that build.
Expand All @@ -37,6 +41,9 @@ A full planet build will require a street polylines file generated with Valhalla
To run a complete build, execute the following commands:

```bash
git submodule init
git submodule update

pelias compose pull
pelias elastic start
pelias elastic wait
Expand All @@ -45,6 +52,7 @@ pelias download all
pelias prepare all
pelias import all
pelias compose up

pelias test run
```

Expand Down
2 changes: 1 addition & 1 deletion projects/planet/acceptance-tests
Submodule acceptance-tests updated 35 files
+6 −6 test_cases/address_type.json
+28 −11 test_cases/admin_lookup.json
+58 −0 test_cases/australian_addresses.json
+12 −7 test_cases/autocomplete_admin_areas.json
+65 −0 test_cases/autocomplete_boundary_circle.json
+32 −0 test_cases/autocomplete_boundary_country.json
+1 −1 test_cases/autocomplete_daly_city.json
+1 −9 test_cases/autocomplete_street_fallback.json
+61 −0 test_cases/autocomplete_synonyms.json
+1 −1 test_cases/deduplication.json
+96 −7 test_cases/french_addresses.json
+3 −3 test_cases/international.json
+1 −1 test_cases/korean_addresses.json
+2 −2 test_cases/korean_admin.json
+4 −4 test_cases/labels.json
+12 −12 test_cases/place.json
+2 −2 test_cases/placeholder_altnames.json
+10 −8 test_cases/placeholder_general.json
+11 −7 test_cases/placeholder_sorting.json
+11 −10 test_cases/properties_source_id.json
+9 −6 test_cases/reverse_coarse.json
+16 −8 test_cases/search.json
+73 −5 test_cases/search_abbreviations.json
+1 −1 test_cases/search_city_country.json
+2 −2 test_cases/search_poi.json
+95 −0 test_cases/search_postal_cities.json
+20 −20 test_cases/structured_geocoding.json
+3 −3 test_cases/tizen-sdk-places.json
+1 −1 test_cases/university.json
+6 −6 test_cases/wof_counties.json
+1 −1 test_cases/wof_localadmins.json
+4 −6 test_cases/wof_localities.json
+5 −5 test_cases/wof_macroregions.json
+1 −1 test_cases/wof_neighbourhoods.json
+7 −7 test_cases/wof_regions.json
2 changes: 1 addition & 1 deletion projects/planet/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ services:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
elasticsearch:
image: pelias/elasticsearch
image: pelias/elasticsearch:5.6.12
container_name: pelias_elasticsearch
restart: always
environment: [ "ES_JAVA_OPTS=-Xmx8g" ]
Expand Down
7 changes: 2 additions & 5 deletions projects/planet/pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"timestamp": false
},
"esclient": {
"apiVersion": "2.4",
"apiVersion": "5.6",
"hosts": [
{ "host": "elasticsearch" }
]
Expand Down Expand Up @@ -67,10 +67,7 @@
"interpolation": {
"download": {
"tiger": {
"datapath": "/data/tiger",
"states": [
{ "state_code": 53, "county_code": 11, "name": "Clark County, WA" }
]
"datapath": "/data/tiger"
}
}
}
Expand Down

0 comments on commit 10ecbb7

Please sign in to comment.