Skip to content

Conversation

@adutra
Copy link
Contributor

@adutra adutra commented Jan 23, 2025

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.

@adutra adutra force-pushed the docker-compose-examples branch from 774a688 to f56dd77 Compare January 23, 2025 18:12
Copy link
Contributor

@dimas-b dimas-b left a 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.

```shell
./gradlew clean :polaris-quarkus-server:assemble :polaris-quarkus-admin:assemble \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4 \
-Dquarkus.container-image.build=true
Copy link
Contributor

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?


```shell
podman compose -f docker/eclipselink/docker-compose.yml up
docker compose -f docker/eclipselink/docker-compose.yml up
Copy link
Contributor

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
Comment on lines 88 to 89
The Polaris codebase contains some docker compose examples to quickly get started with Polaris,
using different configurations. Check the `./docker` directory for more information.
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Member

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
Comment on lines 9 to 11
- [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)
Copy link
Contributor

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:
Copy link
Contributor

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!

# under the License.
#

services:
Copy link
Contributor

@flyrain flyrain Jan 24, 2025

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?

Copy link
Contributor

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?

@adutra adutra changed the title Add docker/podman compose examples to get started with Polaris Add more getting-started examples with Polaris Jan 25, 2025
@adutra
Copy link
Contributor Author

adutra commented Jan 25, 2025

Moved new examples to getting-started.

I also fixed the Spark example.

@HonahX I didn't touch the Trino example since I know you are already on it :-)

@HonahX
Copy link
Contributor

HonahX commented Jan 26, 2025

Thanks @adutra! These examples look great!

I didn't touch the Trino example since I know you are already on it :-)

Thanks! The trino update is here: #877

@flyrain
Copy link
Contributor

flyrain commented Jan 27, 2025

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!

@flyrain flyrain merged commit da26e4c into apache:main Jan 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants