Skip to content

Commit

Permalink
Update example versions in README
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick committed Mar 9, 2024
1 parent 9bc9dc1 commit 4b80330
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ docker run \
--name trino-git \
-e REPO_URL=https://github.com/nineinchnick/trino-rest.git \
-p 8080:8080 \
nineinchnick/trino-git:0.22
nineinchnick/trino-git:0.69
```

Then use your favourite SQL client to connect to Trino running at http://localhost:8080

# Usage

Download one of the ZIP packages, unzip it and copy the `trino-git-0.22` directory to the plugin directory on every node in your Trino cluster.
Download one of the ZIP packages, unzip it and copy the `trino-git-0.69` directory to the plugin directory on every node in your Trino cluster.
Create a `github.properties` file in your Trino catalog directory and point to a remote repo.
You can also use a path to a local repo if it's available on every worker node.

Expand Down Expand Up @@ -92,17 +92,17 @@ An example command to run the Trino server with the git plugin and catalog enabl
```bash
src=$(git rev-parse --show-toplevel)
docker run \
-v $src/target/trino-git-0.20-SNAPSHOT:/usr/lib/trino/plugin/git \
-v $src/target/trino-git-0.70-SNAPSHOT:/usr/lib/trino/plugin/git \
-v $src/catalog:/usr/lib/trino/default/etc/catalog \
-p 8080:8080 \
--name trino \
-d \
trinodb/trino:392
trinodb/trino:440
```

Connect to that server using:
```bash
docker run -it --rm --link trino trinodb/trino:392 trino --server trino:8080 --catalog git --schema default
docker run -it --rm --link trino trinodb/trino:440 trino --server trino:8080 --catalog git --schema default
```

# References
Expand Down

0 comments on commit 4b80330

Please sign in to comment.