Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (32 loc) · 1.1 KB

README.md

File metadata and controls

42 lines (32 loc) · 1.1 KB

mariadb-to-mysql

Data Transfer from MariaDB to BigQuery

Install

$ cd app && npm i

Usage on localhost

Copy the .env.example to .env and fill in the desired configuration.

OR set following values instead.

export QUERY_LIMIT=100000
export RDS_HOST=xxxxxxxx
export RDS_USER=xxxxxxxx
export RDS_PASSWORD=xxxxxxxx
export RDS_DATABASE=xxxxxxxx
export BQ_PROJECT_ID=xxxxxxxx
export BQ_DATASET=xxxxxxxx
export TABLES=Comma,Separated,List,Of,Tables,To,Copy

Then put a Google service account json file in /app/google-keyfile.json.

From the /app folder start the ETL.

$ npm start

Usage with docker

  • docker pull quay.io/gynzy/mariadb-to-bigquery:latest Docker Repository on Quay
  • pass the environment variables in .env to the container
  • and as an extra, pass GCE_JSON environment variable which should contain a base64 encoded service account (json)

Usage with Kubernetes

License

MIT