Skip to content

Commit

Permalink
docs: add instructions on how to align the template version
Browse files Browse the repository at this point in the history
  • Loading branch information
fbiville committed Dec 16, 2024
1 parent a31ad76 commit 891bb58
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,22 @@

## Building the CLI

First, build the `googlecloud-to-neo4j` template locally:
First, clone the `googlecloud-to-neo4j` template locally:

```shell
git clone https://github.com/GoogleCloudPlatform/DataflowTemplates.git
```

> **NOTE**: If you want to align with the template version currently deployed in your GCP region, run the following commands after cloning the `DataflowTemplates` repository (here the region is set to `europe-west8`):
>
> ```shell
> tag=$(gsutil ls gs://dataflow-templates-europe-west8/ | grep -v latest | sort -V -r | head -n 1 | cut -d/ -f4)
> git checkout "${tag}"
> ```
Run the following to locally cache the template:
```shell
git clone git@github.com:GoogleCloudPlatform/DataflowTemplates.git
mvn --file DataflowTemplates/pom.xml --also-make --projects v2/googlecloud-to-neo4j install -DskipTests -Djib.skip
```
Expand Down

0 comments on commit 891bb58

Please sign in to comment.