-
Notifications
You must be signed in to change notification settings - Fork 330
Add more getting-started examples with Polaris #859
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
Conversation
774a688 to
f56dd77
Compare
dimas-b
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the docker compose examples @adutra ! I did not try them personally yet, but they look very helpful for users.
docker/elipselink/README.md
Outdated
| ```shell | ||
| ./gradlew clean :polaris-quarkus-server:assemble :polaris-quarkus-admin:assemble \ | ||
| -PeclipseLinkDeps=org.postgresql:postgresql:42.7.4 \ | ||
| -Dquarkus.container-image.build=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: would it make sense to override the image name/tag to indicate it's with PostgreSQL?
docker/elipselink/README.md
Outdated
|
|
||
| ```shell | ||
| podman compose -f docker/eclipselink/docker-compose.yml up | ||
| docker compose -f docker/eclipselink/docker-compose.yml up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: making separate blocks of text makes copy-paste into shell easier -- GH renders the copy widget, but it copies the whole block of text :)
README.md
Outdated
| The Polaris codebase contains some docker compose examples to quickly get started with Polaris, | ||
| using different configurations. Check the `./docker` directory for more information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are Spark and Trino docker compose examples under the directory ./getting-started. Can we consolidate all docker compose examples into one place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, great idea! I'm sorry I didn't think about it before 🤦♂️
I will move everything to .getting-started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes good point. I think it makes sense to gather everything in getting started and optionally point to getting started.
docker/README.md
Outdated
| - [Docker](https://docs.docker.com/get-docker/) or [Podman](https://podman.io/docs/installation) | ||
| - [Docker Compose](https://docs.docker.com/compose/install/) | ||
| or [Podman Compose](https://docs.podman.io/en/v5.1.1/markdown/podman-compose.1.html) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need both docker-compose and podman-compose? I'd prefer to keep docker-compose only if there is no strong reason to introduce podman. Any new stack introduced to the projects may add maintenance burden. We should keep it minimum as much as possible.
| # under the License. | ||
| # | ||
|
|
||
| services: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty cool for POC and even production deployment. Thanks for doing this!
docker/in-memory/docker-compose.yml
Outdated
| # under the License. | ||
| # | ||
|
|
||
| services: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see much value of having this. The both local run and docker run described in the top-level readme already covered it. Do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we can combine this with trino and spark getting-started examples? So we will have 2 light-weighted examples with trino and spark, and one production-like example with Postgres and Spark-sql?
|
Moved new examples to I also fixed the Spark example. @HonahX I didn't touch the Trino example since I know you are already on it :-) |
|
LGTM overall. Thanks a lot, @adutra, for putting this together! With the comprehensive set of doc updates and Docker Compose examples, I believe we can now deprecate the existing Quick Start page, by replacing it with these updated materials. This isn't a blocker though. We could do that in a followup PR. This change will provide a great starting point for new users and developers, making it easier for them to get up and running. Great work, and this is a solid step forward! |
I hope everyone will find these examples useful.
The Eclipselink example can also serve for now as the de facto test for Eclipselink integration, since there is no such test in our automated tests suite.
I'm already preparing a Minio example, but that requires #32 and #389.