From 0e3a1d657ee723a92453485d6d4003b88195d501 Mon Sep 17 00:00:00 2001 From: Will Lachance Date: Mon, 15 Nov 2021 11:59:15 -0500 Subject: [PATCH] A couple of README updates (#300) * Newer instructions on authenticating to gcloud * Add instructions on generating lookml/namespaces without doing a full deployment --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 84e88bd..fb9f0ce 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,14 @@ project, clicking the "Git Actions" icon, and finding your personal branch in th Ensure Python 3.8+ is available on your machine (see [this guide](https://docs.python-guide.org/starting/install3/osx/) for instructions if you're on a mac and haven't installed anything other than the default system Python.) +You will also need the Google Cloud SDK with valid credentials. +After setting up the Google Cloud SDK, run: + +```bash +gcloud config set project moz-fx-data-shared-prod +gcloud auth login --update-adc +``` + Install requirements in a Python venv ```bash python3.8 -m venv venv/ @@ -73,7 +81,20 @@ venv/bin/pytest -m integration ``` Note that the integration tests require a valid login to BigQuery to succeed. -After setting up the Google Cloud SDK, run `gcloud auth application-default login`. + +## Testing generation locally + +You can test namespace generation by running: + +```bash +./bin/generator namespaces +``` + +To generate the actual lookml (in `looker-hub`), run: + +```bash +./bin/generator lookml +``` ## Container Development