Pipeline:
- Export
users
collection from MongoDB as JSON - gzip the JSON file
- Upload JSON data to Google Cloud Storage
- Convert JSON to a BigQuery table
-
Fork/Clone this repo
-
Download Docker (if necessary)
-
Make sure you are using a Docker version >= 17:
$ docker -v Docker version 17.03.0-ce, build 60ccb22
-
Create the .env file:
$ cp .env.sample .env
-
Update the src/entrypoint.sh script along with the .env file
-
Build and tag the image:
$ docker build -t sample ./src
-
Run the container:
$ docker run --env-file .env -it sample