https://github.com/timescale/prestodb-sandbox
Sandbox docker image to test out prestodb
https://github.com/timescale/prestodb-sandbox
Last synced: about 1 year ago
JSON representation
Sandbox docker image to test out prestodb
- Host: GitHub
- URL: https://github.com/timescale/prestodb-sandbox
- Owner: timescale
- License: apache-2.0
- Created: 2023-11-07T19:00:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-29T16:40:50.000Z (about 2 years ago)
- Last Synced: 2025-05-07T04:58:47.040Z (about 1 year ago)
- Language: JavaScript
- Size: 34.2 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prestodb-sandbox
This sandbox image provides a quick way to run a single-node cluster with the
JMX, [TPC-DS](https://www.tpc.org/tpcds/), [TPC-H](https://www.tpc.org/tpch/),
and memory catalogs.
```
presto> SHOW CATALOGS;
Catalog
---------
jmx
memory
system
tpcds
tpch
(5 rows)
```
Creation of images for new versions of Presto happens autonomously, where a
workflow runs once a day, and if a new version is detected, then it will be
built and pushed, with the `latest` tag pointing at this new version. To
detect a new version, we:
1. Get the latest [tag](https://github.com/prestodb/presto/tags) for regular version
2. Check if that version exists on [maven](https://mvnrepository.com/artifact/com.facebook.presto/presto-main)
3. Check that we do not have a Docker build for that version
If (2) or (3) are not true, then no new build is kicked off.
## Quickstart
### Running the server
To launch the image:
```bash
docker run -p 8080:8080 --name presto ghcr.io/timescale/prestodb-sandbox
```
Wait for the following message log line:
```
INFO main com.facebook.presto.server.PrestoServer ======== SERVER STARTED ========
```
### Running the CLI
To use the included CLI:
```bash
docker exec presto -it presto presto
```
You can pass additional arguments to the CLI:
```bash
docker exec presto -it presto presto --catalog tpch --schema sf1
```