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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ select * from db1.table1;

#### Running in Docker

- `./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true` - To
- `./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true --no-build-cache` - To
build the image locally.
- `docker run -p 8181:8181 -p 8182:8182 apache/polaris:latest` - To run the image.

Expand Down
5 changes: 3 additions & 2 deletions getting-started/eclipselink/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ This example requires `jq` to be installed on your machine.
the Postgres JDBC driver:

```shell
./gradlew :polaris-quarkus-server:assemble :polaris-quarkus-admin:assemble \
./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
-Dquarkus.container-image.build=true \
--no-build-cache
```

2. Start the docker compose group by running the following command from the root of the repository:
Expand Down
2 changes: 1 addition & 1 deletion getting-started/spark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ A Jupyter notebook is used to run PySpark.
If a Polaris image is not already present locally, build one with the following command:

```shell
./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true
./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true --no-build-cache
```

## Run the `docker-compose` file
Expand Down
2 changes: 1 addition & 1 deletion getting-started/telemetry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This example requires `jq` to be installed on your machine.
1. Build the Polaris image if it's not already present locally:

```shell
./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true
./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true --no-build-cache
```

2. Start the docker compose group by running the following command from the root of the repository:
Expand Down
2 changes: 1 addition & 1 deletion getting-started/trino/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This getting started guide provides a `docker-compose` file to set up [Trino](ht
## Build Polaris Image
Build Polaris Image while Docker is running
```
./gradlew :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true
./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true --no-build-cache
```

## Run the `docker-compose` file
Expand Down
5 changes: 3 additions & 2 deletions helm/polaris/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ If necessary, build and load the Docker images with support for Postgres into Mi
```bash
eval $(minikube -p minikube docker-env)

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

### Installing the chart locally
Expand Down
5 changes: 3 additions & 2 deletions helm/polaris/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ If necessary, build and load the Docker images with support for Postgres into Mi
```bash
eval $(minikube -p minikube docker-env)

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

### Installing the chart locally
Expand Down
2 changes: 1 addition & 1 deletion quarkus/admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ java -jar polaris-quarkus-admin-<version>-runner.jar
To also build the Docker image, you can use the following command:

```shell
./gradlew :polaris-quarkus-admin:assemble -Dquarkus.container-image.build=true
./gradlew clean :polaris-quarkus-admin:assemble -Dquarkus.container-image.build=true --no-build-cache
```

## Running the Admin Tool
Expand Down
7 changes: 4 additions & 3 deletions quarkus/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ To also build the Docker image, you can use the following command (a running Doc
required):

```shell
./gradlew :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true
./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true --no-build-cache
```

If you need to customize the Docker image, for example to push to a local registry, you can use the
following command:

```shell
./gradlew :polaris-quarkus-server:build -Dquarkus.container-image.build=true \
./gradlew clean :polaris-quarkus-server:build -Dquarkus.container-image.build=true \
-Dquarkus.container-image.registry=localhost:5001 \
-Dquarkus.container-image.group=apache \
-Dquarkus.container-image.name=polaris-local
-Dquarkus.container-image.name=polaris-local \
--no-build-cache
```
2 changes: 1 addition & 1 deletion regtests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Tests can be run with docker-compose using the provided `./regtests/docker-compo
follows:

```shell
./gradlew :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true
./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true --no-build-cache
docker compose -f ./regtests/docker-compose.yml up --build --exit-code-from regtest
```

Expand Down
5 changes: 3 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ sh ./kind-registry.sh

# Build and deploy the server image
echo "Building polaris image..."
./gradlew :polaris-quarkus-server:build $ECLIPSE_LINK_DEPS \
./gradlew clean :polaris-quarkus-server:build $ECLIPSE_LINK_DEPS \
-Dquarkus.container-image.build=true \
-Dquarkus.container-image.registry=localhost:5001
-Dquarkus.container-image.registry=localhost:5001 \
--no-build-cache

echo "Pushing polaris image..."
docker push localhost:5001/apache/polaris
Expand Down
3 changes: 2 additions & 1 deletion site/content/in-dev/unreleased/admin-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ example, to build the tool with support for Postgres, run the following:
```shell
./gradlew clean :polaris-quarkus-admin:build \
-Dquarkus.container-image.build=true \
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4
-PeclipseLinkDeps=org.postgresql:postgresql:42.7.4 \
--no-build-cache
```

The above command will generate:
Expand Down
2 changes: 1 addition & 1 deletion site/content/in-dev/unreleased/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ To start using Polaris in Docker, launch Polaris while Docker is running:

```shell
cd ~/polaris
./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true
./gradlew clean :polaris-quarkus-server:assemble -Dquarkus.container-image.build=true --no-build-cache
docker run -p 8181:8181 -p 8182:8182 apache/polaris:latest
```

Expand Down