Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

License

NotificationsYou must be signed in to change notification settings

mozilla-it/geoip2gcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Requirements

  • GCS Bucket
  • Some scheduler to run script periodicallly

Usage

local

Note

We're managing dependencies withpoetry, please install first.

poetry installexport MAXMIND_LICENSE_KEY='license'export GCS_BUCKET='bucket'poetry run geoip2gcs

local - docker

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp