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

Introduce Regions #38

Closed
3 tasks done
rgaudin opened this issue Aug 20, 2024 · 0 comments · Fixed by #42
Closed
3 tasks done

Introduce Regions #38

rgaudin opened this issue Aug 20, 2024 · 0 comments · Fixed by #42
Assignees
Labels
enhancement New feature or request

Comments

@rgaudin
Copy link
Member

rgaudin commented Aug 20, 2024

Following kiwix/container-images#263, we've decided that we will be configuring mirrorbrain mostly via the regionOnly parameter.

In order to generate region-aware data, we need our Countries to be associated with regions.

We will use the Maxmind GeoIP Countries DB for that (because that's stable and because that's what MB is already using – albeit an older version)

Todo:

  • Add region Table (code, name)
  • Add region field in Country
  • Write a script that given a GeoLite2-Country-Locations-en.csv file fills both the region table and updates the countries.

DB file can be downloaded from maxmind website (requires creating an account). What's most appropriate I believe is the GeoLite2 Country: CSV Format download and the GeoLite2-Country-Locations-en.csv inside it.

@rgaudin rgaudin added the enhancement New feature or request label Aug 20, 2024
This was referenced Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants