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

How to use the database provided by the OS? #6

Closed
leoliu opened this issue Aug 5, 2019 · 4 comments
Closed

How to use the database provided by the OS? #6

leoliu opened this issue Aug 5, 2019 · 4 comments

Comments

@leoliu
Copy link

leoliu commented Aug 5, 2019

My CentOS provides an update-to-date DB: /usr/share/GeoIP/GeoLite2-City.mmdb. But locus seems to want a tar ball instead. Is it possible to make it support system-provided DB which simplifies deployment a lot? Thanks.

@g-andrade
Copy link
Owner

I've got some unreleased changes under the develop branch that would make this reasonably easy to implement.

I'll leave this issue open as a reminder.

@g-andrade
Copy link
Owner

I've added experimental support for direct load of .mmdb files on 7477a1c (yet unreleased.)

Please try it and let me know whether that works for you.

URL = "/usr/share/GeoIP/GeoLite2-City.mmdb",
ok = locus:start_loader(city, URL).

@leoliu
Copy link
Author

leoliu commented Aug 6, 2019

I just tested it with the develop and it works like a charm. Thanks a lot for the quick fix.

@g-andrade
Copy link
Owner

A new version, 1.7.0, has been released and it includes support for multiple file formats, including unpacked mmdb files.

Closing this; please re-open (or open a new issue) if you find any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants