This is an automated email from the ASF dual-hosted git repository. alsay pushed a commit to branch readme_formatting in repository https://gitbox.apache.org/repos/asf/datasketches-bigquery.git
commit 0a6698715f4274344cd4321463dfd7b425c82183 Author: AlexanderSaydakov <[email protected]> AuthorDate: Mon Dec 16 12:00:59 2024 -0800 better formatting --- README.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4d3b3d0..bfd3485 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ page for how to contact us. ## Requirements - Requires [Emscripten (emcc compiler)](https://emscripten.org/) + ```bash git clone https://github.com/emscripten-core/emsdk.git \ && cd emsdk \ @@ -47,23 +48,33 @@ page for how to contact us. && source ./emsdk_env.sh \ && cd .. ``` + + This can be installed using 'brew install emscripten' on MacOS. + - Requires a link to **datasketches-cpp** in this repository + ```bash - # Run the following make datasketches-cpp ``` - This target is a part of the default target 'all' - This requires wget and unzip + + This target is a part of the default target 'all'. + This requires wget and unzip. + - Requires make utility - Requires [Google Cloud CLI](https://cloud.google.com/sdk/docs/install) + ```bash curl https://sdk.cloud.google.com | bash ``` + - Requires npm and @dataform/cli package + ```bash npm install -g @dataform/cli ``` + - Requires setting the following environment variables to your own values: + ```bash export JS_BUCKET= # GCS bucket to hold compiled artifacts (must include gs://) export BQ_PROJECT= # location of stored SQL functions (routines) @@ -79,6 +90,7 @@ page for how to contact us. Run the following steps in this repo's root directory to install everything via Cloud Build: + ```bash gcloud builds submit \ --project=$BQ_PROJECT \ @@ -93,6 +105,7 @@ gcloud builds submit \ ### Install All DataSketches Run the following steps in this repo's root directory to install everything: + ```bash gcloud auth application-default login # for authentication make # performs compilation @@ -104,6 +117,7 @@ make test # runs predefined tests in BQ To install a specific sketch, change into an individual sketch directory and run the following: + ```bash gcloud auth application-default login # for authentication make # performs compilation --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
