Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ jobs:
:polaris-quarkus-server:quarkusAppPartsBuild --rerun \
:polaris-quarkus-admin:assemble \
:polaris-quarkus-admin:quarkusAppPartsBuild --rerun \
-Dquarkus.container-image.build=true \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4
-Dquarkus.container-image.build=true
minikube image ls

- name: Install fixtures
Expand Down
1 change: 0 additions & 1 deletion getting-started/assets/cloud_providers/deploy-aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ FULL_POSTGRES_ADDR=$(printf '%s\n' "jdbc:postgresql://$POSTGRES_ADDR/{realm}" |
sed -i "/jakarta.persistence.jdbc.url/ s|value=\"[^\"]*\"|value=\"$FULL_POSTGRES_ADDR\"|" "getting-started/assets/eclipselink/persistence.xml"

./gradlew clean :polaris-quarkus-server:assemble :polaris-quarkus-admin:assemble \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4 \
-Dquarkus.container-image.tag=postgres-latest \
-Dquarkus.container-image.build=true \
--no-build-cache
Expand Down
1 change: 0 additions & 1 deletion getting-started/assets/cloud_providers/deploy-azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ FULL_POSTGRES_ADDR=$(printf '%s\n' "jdbc:postgresql://$POSTGRES_ADDR:5432/{realm
sed -i "/jakarta.persistence.jdbc.url/ s|value=\"[^\"]*\"|value=\"$FULL_POSTGRES_ADDR\"|" "getting-started/assets/eclipselink/persistence.xml"

./gradlew clean :polaris-quarkus-server:assemble :polaris-quarkus-admin:assemble \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4 \
-Dquarkus.container-image.tag=postgres-latest \
-Dquarkus.container-image.build=true \
--no-build-cache
Expand Down
1 change: 0 additions & 1 deletion getting-started/assets/cloud_providers/deploy-gcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ FULL_POSTGRES_ADDR=$(printf '%s\n' "jdbc:postgresql://$POSTGRES_ADDR:5432/{realm
sed -i "/jakarta.persistence.jdbc.url/ s|value=\"[^\"]*\"|value=\"$FULL_POSTGRES_ADDR\"|" "getting-started/assets/eclipselink/persistence.xml"

./gradlew clean :polaris-quarkus-server:assemble :polaris-quarkus-admin:assemble \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4 \
-Dquarkus.container-image.tag=postgres-latest \
-Dquarkus.container-image.build=true \
--no-build-cache
Expand Down
1 change: 0 additions & 1 deletion getting-started/eclipselink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ This example requires `jq` to be installed on your machine.
:polaris-quarkus-server:quarkusAppPartsBuild --rerun \
:polaris-quarkus-admin:assemble \
:polaris-quarkus-admin:quarkusAppPartsBuild --rerun \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4 \
-Dquarkus.container-image.tag=postgres-latest \
-Dquarkus.container-image.build=true
```
Expand Down
7 changes: 3 additions & 4 deletions helm/polaris/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Simply run the `run.sh` script from the Polaris repo root, making sure to specif
`--eclipse-link-deps` option:

```bash
./run.sh --eclipse-link-deps=org.postgresql:postgresql:42.7.4
./run.sh
```

This script will create a Kind cluster, deploy a local Docker registry, build the Polaris Docker
Expand All @@ -86,13 +86,12 @@ If necessary, build and load the Docker images with support for Postgres into Mi
```bash
eval $(minikube -p minikube docker-env)

./gradlew \
./gradlew \
:polaris-quarkus-server:assemble \
:polaris-quarkus-server:quarkusAppPartsBuild --rerun \
:polaris-quarkus-admin:assemble \
:polaris-quarkus-admin:quarkusAppPartsBuild --rerun \
-Dquarkus.container-image.build=true \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4
-Dquarkus.container-image.build=true
```

### Installing the chart locally
Expand Down
5 changes: 2 additions & 3 deletions helm/polaris/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Simply run the `run.sh` script from the Polaris repo root, making sure to specif
`--eclipse-link-deps` option:

```bash
./run.sh --eclipse-link-deps=org.postgresql:postgresql:42.7.4
./run.sh
```

This script will create a Kind cluster, deploy a local Docker registry, build the Polaris Docker
Expand All @@ -92,8 +92,7 @@ eval $(minikube -p minikube docker-env)
:polaris-quarkus-server:quarkusAppPartsBuild --rerun \
:polaris-quarkus-admin:assemble \
:polaris-quarkus-admin:quarkusAppPartsBuild --rerun \
-Dquarkus.container-image.build=true \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4
-Dquarkus.container-image.build=true
```

### Installing the chart locally
Expand Down
17 changes: 11 additions & 6 deletions quarkus/admin/distribution/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -1405,8 +1405,8 @@ License (from POM): Apache License 2.0 - https://www.apache.org/licenses/LICENSE
--------------------------------------------------------------------------------

Group: org.eclipse.angus Name: angus-activation Version: 2.0.2
Project URL (from POM): https://github.com/eclipse-ee4j/angus-activation
License (from POM): EDL 1.0 - http://www.eclipse.org/org/documents/edl-v10.php
Project URL: https://github.com/eclipse-ee4j/angus-activation
License: Eclipse Public License 2.0 - https://projects.eclipse.org/license/epl-2.0

--------------------------------------------------------------------------------

Expand All @@ -1428,10 +1428,9 @@ License: Eclipse Public License 2.0 - https://projects.eclipse.org/license/epl-2

--------------------------------------------------------------------------------

org.eclipse.persistence.eclipselink-4.0.5.jar
Project URL (from POM): http://www.eclipse.org/eclipselink
License (from POM): Eclipse Public License 2.0 - http://www.eclipse.org/legal/epl-2.0
License (from POM): Eclipse Distribution License 1.0 - http://www.eclipse.org/org/documents/edl-v10.php
Group: org.eclipse.persistence Name: eclipselink Version: 4.0.6
Project URL: https://eclipse.dev/eclipselink/
License: Eclipse Public License 2.0 - https://projects.eclipse.org/license/epl-2.0

--------------------------------------------------------------------------------

Expand Down Expand Up @@ -1723,3 +1722,9 @@ Project URL (from POM): https://github.com/awslabs/aws-eventstream-java
License (from POM): Apache License 2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt

--------------------------------------------------------------------------------

Group: org.postgresql Name: postgresql Version: 42.7.5
Project URL: https://jdbc.postgresql.org/
License (from POM): BSD-2-Clause - https://opensource.org/licenses/BSD-2-Clause

--------------------------------------------------------------------------------
5 changes: 2 additions & 3 deletions quarkus/server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ dependencies {
implementation(project(":polaris-service-common"))
implementation(project(":polaris-quarkus-service"))

if (project.hasProperty("eclipseLinkDeps")) {
runtimeOnly(project(":polaris-eclipselink"))
}
runtimeOnly(project(":polaris-eclipselink"))
runtimeOnly("org.postgresql:postgresql")

// enforce the Quarkus _platform_ here, to get a consistent and validated set of dependencies
implementation(enforcedPlatform(libs.quarkus.bom))
Expand Down
18 changes: 18 additions & 0 deletions quarkus/server/distribution/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2086,6 +2086,12 @@ License (from POM): Apache License 2.0 - https://www.apache.org/licenses/LICENSE

--------------------------------------------------------------------------------

Group: org.eclipse.angus Name: angus-activation Version: 2.0.2
Project URL: https://projects.eclipse.org/projects/ee4j.angus
License: Eclipse Public License 2.0 - https://projects.eclipse.org/license/epl-2.0

--------------------------------------------------------------------------------

Group: org.eclipse.jetty Name: jetty-http Version: 9.4.53.v20231009
Project URL (from POM): https://eclipse.org/jetty
License (from POM): Apache License 2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt
Expand Down Expand Up @@ -2167,6 +2173,12 @@ License (from POM): Apache License 2.0 - https://www.apache.org/licenses/LICENSE

--------------------------------------------------------------------------------

Group: org.eclipse.persistence Name: eclipselink Version: 4.0.6
Project URL: https://eclipse.dev/eclipselink/
License: Eclipse Public License 2.0 - https://projects.eclipse.org/license/epl-2.0

--------------------------------------------------------------------------------

Group: org.glassfish.expressly Name: expressly Version: 5.0.0
Project URL (from POM): https://projects.eclipse.org/projects/ee4j
License (from POM): EPL 2.0 - https://www.eclipse.org/legal/epl-2.0
Expand Down Expand Up @@ -2480,3 +2492,9 @@ Project URL (from POM): https://github.com/awslabs/aws-eventstream-java
License (from POM): Apache License 2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt

--------------------------------------------------------------------------------

Group: org.postgresql Name: postgresql Version: 42.7.5
Project URL: https://jdbc.postgresql.org/
License (from POM): BSD-2-Clause - https://opensource.org/licenses/BSD-2-Clause

--------------------------------------------------------------------------------
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
usage() {
echo "Usage: $0 [--eclipse-link-deps=<deps>] [-h|--help]"
echo " --eclipse-link-deps=<deps> EclipseLink dependencies to use, e.g."
echo " --eclipse-link-deps=org.postgresql:postgresql:42.7.4"
echo " --eclipse-link-deps=com.h2database:h2:2.3.232"
echo " -h, --help Display this help message"
exit 1
}
Expand Down
3 changes: 1 addition & 2 deletions site/content/in-dev/unreleased/admin-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ example, to build the tool with support for Postgres, run the following:
./gradlew \
:polaris-quarkus-admin:assemble \
:polaris-quarkus-admin:quarkusAppPartsBuild --rerun \
-Dquarkus.container-image.build=true \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4
-Dquarkus.container-image.build=true
```

The above command will generate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ cd ~/polaris
:polaris-quarkus-server:assemble \
:polaris-quarkus-server:quarkusAppPartsBuild \
:polaris-quarkus-admin:assemble --rerun \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4 \
-Dquarkus.container-image.tag=postgres-latest \
-Dquarkus.container-image.build=true
docker compose -f getting-started/eclipselink/docker-compose.yml up
Expand Down
24 changes: 6 additions & 18 deletions site/content/in-dev/unreleased/metastores.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ weight: 700

This page documents important configurations for connecting to a production database through [EclipseLink](https://eclipse.dev/eclipselink/).

## Building Polaris with EclipseLink
## Polaris EclipseLink

Polaris doesn't ship with any JDBC driver. You must specify them when building Polaris with
EclipseLink by using Gradle's project property:
`-PeclipseLinkDeps=<jdbc-driver-artifact1>,<jdbc-driver-artifact2>,...`. See below examples for H2
and Postgres.
Polaris includes EclipseLink plugin by default with PostgreSQL driver.

In order to add other JDBC drivers, you have to build Polaris using the `eclipseLinkDeps` build property.

## Polaris Server Configuration

Expand Down Expand Up @@ -104,6 +103,8 @@ java -Dpolaris.persistence.type=eclipse-link \

### Using Postgres

PostgreSQL is included by default in the Polaris server distribution.

The following shows a sample configuration for integrating Polaris with Postgres.

```xml
Expand All @@ -129,16 +130,3 @@ The following shows a sample configuration for integrating Polaris with Postgres
</properties>
</persistence-unit>
```

To build Polaris with the necessary Postgres dependency and start the Polaris service, run the following:

```shell
./gradlew \
:polaris-quarkus-server:assemble \
:polaris-quarkus-server:quarkusAppPartsBuild --rerun \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4
java -Dpolaris.persistence.type=eclipse-link \
-Dpolaris.persistence.eclipselink.configuration-file=/path/to/persistence.xml \
-Dpolaris.persistence.eclipselink.persistence-unit=polaris \
-jar quarkus/server/build/quarkus-app/quarkus-run.jar
```
Loading