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
21 changes: 20 additions & 1 deletion quarkus/admin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,26 @@ This module contains a maintenance tool for performing administrative tasks on t
It is a Quarkus application that can be used to perform various maintenance tasks targeting the
Polaris database directly.

Building this module will create a runnable uber-jar that can be executed from the command line.
## Archive distribution

Building this module will create a zip/tar distribution with the Polaris server.

To build the distribution, you can use the following command:

```shell
./gradlew :polaris-quarkus-admin:build
```

You can manually unpack and run the distribution archives:

```shell
cd quarkus/admin/build/distributions
unzip polaris-quarkus-admin-<version>.zip
cd polaris-quarkus-admin-<version>
java -jar polaris-quarkus-admin-<version>-runner.jar
```

## Docker image

To also build the Docker image, you can use the following command:

Expand Down
15 changes: 15 additions & 0 deletions quarkus/admin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ plugins {
alias(libs.plugins.openapi.generator)
id("polaris-server")
id("polaris-license-report")
id("distribution")
}

dependencies {
Expand Down Expand Up @@ -84,3 +85,17 @@ tasks.named("sourcesJar") { dependsOn("compileQuarkusGeneratedSourcesJava") }
tasks.named("javadoc") { dependsOn("jandex") }

tasks.named("quarkusDependenciesBuild") { dependsOn("jandex") }

tasks.named("distZip") { dependsOn("quarkusBuild") }

tasks.named("distTar") { dependsOn("quarkusBuild") }

distributions {
main {
contents {
from("../../NOTICE")
from("../../LICENSE-BINARY-DIST").rename("LICENSE-BINARY-DIST", "LICENSE")
from(project.layout.buildDirectory) { include("polaris-quarkus-admin-*-runner.jar") }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.polaris.service.quarkus.admin;
package org.apache.polaris.admintool;

import jakarta.inject.Inject;
import java.util.concurrent.Callable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.polaris.service.quarkus.admin;
package org.apache.polaris.admintool;

import java.util.List;
import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.polaris.service.quarkus.admin;
package org.apache.polaris.admintool;

import io.quarkus.picocli.runtime.annotations.TopCommand;
import java.io.PrintWriter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.polaris.service.quarkus.admin;
package org.apache.polaris.admintool;

import org.apache.polaris.version.PolarisVersion;
import picocli.CommandLine.IVersionProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.polaris.service.quarkus.admin;
package org.apache.polaris.admintool;

import java.util.List;
import picocli.CommandLine;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.polaris.service.quarkus.admin;
package org.apache.polaris.admintool;

import static org.assertj.core.api.Assertions.assertThat;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.polaris.service.quarkus.admin;
package org.apache.polaris.admintool;

import static org.assertj.core.api.Assertions.assertThat;

Expand Down
Loading