Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Admin1 support, de-compose Docker #12

Merged
merged 7 commits into from Jul 29, 2016
Merged

Add Admin1 support, de-compose Docker #12

merged 7 commits into from Jul 29, 2016

Conversation

ahalterman
Copy link
Member

Unfortunately this PR has two major changes. Sorry.

  1. In order to be a better replacement for CLIFF, Mordecai now also returns the name of the admin 1 unit a point is inside. (closes Return ADM1/province/state info #2)
  2. Fixes an issue with docker-compose (closes Connection error  #9). Instead of using docker-compose to connect Mordecai and the Elastic/Geonames service, Mordecai now uses a config file. If the config file has an entry, it uses that port/url. If the server section is commented out, it looks for a Docker container to be linked to Mordecai when Mordecai is started (see README).

Smaller changes:

  • reorganized Dockerfile for better caching, bringing the build speed from 10 minutes to 2-3 seconds.
  • Ensured that country_filter is coerced to a list before going to ES.

Despite the number of changes, this PR is sort of a hotfix, as the current master branch does not work.

@ahalterman ahalterman mentioned this pull request Jul 25, 2016
@ahalterman ahalterman merged commit 79bacb2 into master Jul 29, 2016
@ahalterman ahalterman deleted the adm1 branch July 29, 2016 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection error Return ADM1/province/state info
1 participant