You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Build a production image (for production): `docker build -t davidtnfsh/pycon_etl:prod --cache-from davidtnfsh/pycon_etl:prod -f Dockerfile .`
46
+
If you want to build dev/test image, you also need to build this docker image first because dev/test image is on top of this production image. See below.
2. Follow the instruction in `.env.staging` and fill in your secrets
49
+
1.`cp .env.template .env.staging` for dev/test. `cp .env.template .env.production` instead if you are going to start a production instance.
50
+
2. Follow the instruction in `.env.<staging|production>` and fill in your secrets.
51
+
If you are just running the staging instance for development as a sandbox, and not going to access any specific thrid-party service, leave the `.env.staging` as-is should be fine.
* Note the difference are just the env file name and the image cache.
53
56
#### BigQuery (Optional)
54
57
1. Setup the Authentication of GCP: <https://googleapis.dev/python/google-api-core/latest/auth.html>
55
-
* After invoking `gcloud auth application-default login`, you'll get a credentials.json resides in `/Users/<xxx>/.config/gcloud/application_default_credentials.json`. Invoke `export GOOGLE_APPLICATION_CREDENTIALS="/path/to/keyfile.json"` if you have it.
56
-
* service-account.json: Please contact @david30907d using email, telegram or discord.
58
+
* After invoking `gcloud auth application-default login`, you'll get a credentials.json resides in `$HOME/.config/gcloud/application_default_credentials.json`. Invoke `export GOOGLE_APPLICATION_CREDENTIALS="/path/to/keyfile.json"` if you have it.
59
+
* service-account.json: Please contact @david30907d using email, telegram or discord. No worry about this json if you are just running the sandbox staging instance for development.
57
60
2. Give [Toy-Examples](#Toy-Examples) a try
58
61
59
62
## Deployment
@@ -83,4 +86,4 @@ rows = query_job.result() # Waits for query to finish
0 commit comments