Skip to content

ironWorker which downloads GeoLite2 City in its CSV Format from MaxMind and populate a mySQL database with the CSV file content.

Notifications You must be signed in to change notification settings

mattsilvllc/geolocation-dbsync-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geolocation-dbsync-worker

ironWorker which downloads GeoLite2 City in its CSV Format from MaxMind and populate a mySQL database with the CSV file content.

Requirements

Installation

bash deploy.sh --build-docker

Testing locally

Create a config.local.json file containing your DB credentials

bash deploy.sh --local

Deploy to Iron.io

1- Setup Iron.io credentials(more info.).

IRON_TOKEN=MY_TOKEN
IRON_PROJECT_ID=MY_PROJECT_ID

2- Run deployment script.

bash deploy.sh

Sample config.json and config.local.json

{
  "MYSQL_USER": "<db_user>",
  "MYSQL_PASSWORD": "<db_password>",
  "MYSQL_HOST": "<db_host>",
  "MYSQL_NAME": "<db_name>",
  "MYSQL_PORT": "3306"
}

About

ironWorker which downloads GeoLite2 City in its CSV Format from MaxMind and populate a mySQL database with the CSV file content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published