-
Notifications
You must be signed in to change notification settings - Fork 352
Create a single binary distribution bundle #1589
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
Changes from 19 commits
d028731
9726cf7
60c3fb6
5409eb7
5c4ab8c
3f0eddf
a7a73fb
94624bb
7280b9f
6fbbad8
06cd4de
9e57ee8
a80ac3a
00a6739
a029404
62db142
be866e7
8744252
c62c61b
76df496
f9451c8
8d0b09d
545d886
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| Apache Polaris (incubating) is an effort undergoing incubation at The Apache | ||
| Software Foundation (ASF), sponsored by the Apache Incubator PMC. | ||
|
|
||
| Incubation is required of all newly accepted projects until a further review | ||
| indicates that the infrastructure, communications, and decision making process | ||
| have stabilized in a manner consistent with other successful ASF projects. | ||
|
|
||
| While incubation status is not necessarily a reflection of the completeness | ||
| or stability of the code, it does indicate that the project has yet to be | ||
| fully endorsed by the ASF. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one | ||
| or more contributor license agreements. See the NOTICE file | ||
| distributed with this work for additional information | ||
| regarding copyright ownership. The ASF licenses this file | ||
| to you under the Apache License, Version 2.0 (the | ||
| "License"); you may not use this file except in compliance | ||
| with the License. You may obtain a copy of the License at | ||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
| Unless required by applicable law or agreed to in writing, | ||
| software distributed under the License is distributed on an | ||
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| KIND, either express or implied. See the License for the | ||
| specific language governing permissions and limitations | ||
| under the License. | ||
| --> | ||
|
|
||
| # Apache Polaris Distribution | ||
|
|
||
| This distribution contains both the Polaris Server and Admin Tool. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| - Java SE 21 or higher | ||
|
|
||
| ## Directory Structure | ||
|
|
||
| ``` | ||
| polaris-quarkus-distribution-@version@/ | ||
| ├── LICENSE | ||
| ├── NOTICE | ||
| ├── README.md | ||
| ├── admin/ # Admin tool files | ||
| ├── bin/ # Executable scripts | ||
| │ ├── admin | ||
| │ └── server | ||
| └── server/ # Server files | ||
| ``` | ||
|
|
||
| ## Usage | ||
|
|
||
| The distribution includes separate scripts for running the server and admin tool: | ||
|
|
||
| ### Start the Server | ||
|
|
||
| ```bash | ||
| ./bin/server | ||
|
||
| ``` | ||
|
|
||
| ### Use the Admin Tool | ||
|
|
||
| ```bash | ||
| ./bin/admin --help # Show admin commands | ||
| ./bin/admin bootstrap -h # Show bootstrap help | ||
| ./bin/admin purge -h # Show purge help | ||
| ``` | ||
|
|
||
| ### Configuration | ||
|
|
||
| Both components can be configured using environment variables or system properties. For example: | ||
|
|
||
| ```bash | ||
| # Configure server port | ||
| JAVA_OPTS="-Dquarkus.http.port=8080" ./bin/server | ||
|
||
|
|
||
| # Configure admin tool | ||
| JAVA_OPTS="-Dpolaris.persistence.type=relational-jdbc" ./bin/admin | ||
|
||
| ``` | ||
|
|
||
| For more details on configuration, please refer to the Polaris documentation: | ||
| https://polaris.apache.org/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,24 +16,7 @@ | |
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
| # | ||
|
|
||
| # Linux Quarkus fast-jar run script for Apache Polaris | ||
|
|
||
| set -e | ||
|
|
||
| script_dir="$(dirname "$0")" | ||
|
|
||
| if [ -z "$JAVA_HOME" ] ; then | ||
| JAVACMD="`\\unset -f command; \\command -v java`" | ||
| else | ||
| JAVACMD="$JAVA_HOME/bin/java" | ||
| fi | ||
|
|
||
| if [ ! -x "$JAVACMD" ] ; then | ||
| echo "The JAVA_HOME environment variable is not defined correctly," >&2 | ||
| echo "this environment variable is needed to run this program." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| exec "${JAVACMD}" -jar "${script_dir}/quarkus-run.jar" $@ | ||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| cd "${SCRIPT_DIR}/../admin" || exit | ||
| java -jar quarkus-run.jar "$@" | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| cd "${SCRIPT_DIR}/../server" || exit | ||
| java -jar quarkus-run.jar "$@" | ||
|
||
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 think we just say 21 here, please ref thread here : #1517 (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.
You are right that Polaris target jdk version is 21,
polaris/build-logic/src/main/kotlin/polaris-server.gradle.kts
Line 24 in 9377aa7
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 think 21+ is fine. We can always adjust docs if we hit incompatibilities.
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.
Agree, 21+ is fine.