-
Notifications
You must be signed in to change notification settings - Fork 92
feat(deployment): Deploy Presto with stock images and install the CLP connector as a plugin. #2439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
jackluo923
wants to merge
18
commits into
y-scope:main
Choose a base branch
from
jackluo923:feat/clp-presto-connector-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
87ebad2
feat(deployment): Deploy Presto with stock images and install the CLP…
jackluo923 134f7f5
chore(helm): Bump chart version to 0.4.1-dev.4 for the connector-plug…
jackluo923 b8fde9a
fix(presto-clp): Wrap the connector init image line to satisfy yamlli…
jackluo923 4c6f2eb
Merge branch 'main' into feat/clp-presto-connector-integration
jackluo923 e0b406e
feat(presto-clp): Auto-resolve the CLP connector image tag in Compose…
jackluo923 bd48358
docs(presto): Document connector image resolution and local testing.
jackluo923 63cc8b7
presto-clp: share one :<version> tag between local and published conn…
jackluo923 7b35238
presto-clp: rename CLP_CONNECTOR_* env vars to CLP_PRESTO_CONNECTOR_*
jackluo923 5d8e9ab
docs(presto): invoke set-up-test.sh from the repo root in the Helm ex…
jackluo923 0349aef
docs(presto): clarify CLP_PRESTO_CONNECTOR_TAG skips image validation
jackluo923 fed5c4c
fix(helm): fail loudly on invalid connector image overrides
jackluo923 d8a3aa2
refactor(presto): share a timed Docker probe for image availability
jackluo923 883e93a
fix(presto): use logger.exception for Docker probe failures
jackluo923 8f95c55
feat(presto): Default to the published multi-arch connector image.
jackluo923 6bf710b
docs(presto): Tighten the connector image docs.
jackluo923 490148f
docs(helm): Condense the image-override comments in the set-up scripts.
jackluo923 4e089ec
refactor(presto): Simplify the connector image resolution in `init.py`.
jackluo923 cf9e2fa
feat(deployment): Pin the Presto and CLP connector images by digest, …
jackluo923 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # Building and testing the Presto connector | ||
|
|
||
| The Presto integration installs the [CLP connector][clp-connector] at startup from the | ||
| `ghcr.io/y-scope/clp-plugin-presto-connector` image, so the stock Presto images stay unmodified. | ||
| This page covers building that image locally and pointing the [Docker Compose](#docker-compose) and | ||
| [Helm](#helm-kind) stacks at it. | ||
|
|
||
| Local and published images share the same `:<version>` tag (e.g. `0.1.0-SNAPSHOT`), so whatever is | ||
| in your Docker daemon wins. `docker rmi` your local build to go back to the published image. | ||
|
|
||
| ## Building the connector image | ||
|
|
||
| In the [`clp-plugin-presto-connector`][clp-connector] repository, run: | ||
|
|
||
| ```shell | ||
| task package | ||
| ``` | ||
|
|
||
| This builds `ghcr.io/y-scope/clp-plugin-presto-connector:0.1.0-SNAPSHOT` and loads it into your | ||
| local Docker daemon. | ||
|
|
||
| ## Docker Compose | ||
|
|
||
| The `presto-clp` stack is in `tools/deployment/presto-clp`. `scripts/set-up-config.sh` verifies the | ||
| connector image exists (locally or on the registry) and writes it into `.env`, erroring with the | ||
| ref it tried if neither exists. Export any of these before running it: | ||
|
|
||
| * `CLP_PRESTO_CONNECTOR_IMAGE`: repository (default `ghcr.io/y-scope/clp-plugin-presto-connector`). | ||
| * `CLP_PRESTO_CONNECTOR_VERSION`: tag to verify and use (default `0.1.0-SNAPSHOT`). | ||
| * `CLP_PRESTO_CONNECTOR_TAG`: exact tag, skipping the existence check. | ||
|
|
||
| Then start the stack: | ||
|
|
||
| ```shell | ||
| ./scripts/set-up-config.sh <clp-package-dir> | ||
| docker compose up -d | ||
| ``` | ||
|
|
||
| See the [Using Presto with CLP][using-presto] user guide for the full setup. | ||
|
|
||
| ## Helm (kind) | ||
|
|
||
| `--clp-connector-image` loads a local image into the `kind` cluster and sets | ||
| `image.clpConnector.{repository,tag,pullPolicy=Never}` for you: | ||
|
|
||
| ```shell | ||
| tools/deployment/package-helm/set-up-test.sh --presto \ | ||
| --clp-connector-image ghcr.io/y-scope/clp-plugin-presto-connector:0.1.0-SNAPSHOT | ||
| ``` | ||
|
|
||
| [clp-connector]: https://github.com/y-scope/clp-plugin-presto-connector | ||
| [using-presto]: ../user-docs/guides-using-presto.md | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.