- Notifications
You must be signed in to change notification settings - Fork1
License
NotificationsYou must be signed in to change notification settings
mozilla-it/geoip2gcs
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This script will:
- Fetch GeoIP2 database and copy it to GCS
- Maintains state of version and only updates when new version is available
- GCS Bucket
- Some scheduler to run script periodicallly
Note
We're managing dependencies withpoetry, please install first.
poetry installexport MAXMIND_LICENSE_KEY='license'export GCS_BUCKET='bucket'poetry run geoip2gcs
geoip2gcs
can be executed with docker.
Important
In order for containers to succeed, you additionally need to take care of authenticating the container env with GCP.Please choose one of the existingoptions to do so.
docker build -t geoip2gcs:latest .export MAXMIND_LICENSE_KEY='license'export GCS_BUCKET='bucket'docker run \ --rm \ --name geoip2gcs \ -e MAXMIND_LICENSE_KEY=$MAXMIND_LICENSE_KEY \ -e GCS_BUCKET=$GCS_BUCKET \ geoip2gcs:latest