-
Notifications
You must be signed in to change notification settings - Fork 249
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
d028731
[POLARIS] Add script to merge admin and server distributions
9726cf7
POLARIS-1: Fix repository configuration in custom plugins and restore…
60c3fb6
POLARIS-1: Remove run-script module - Remove run-script module from p…
5409eb7
delete module run script
5c4ab8c
delete unused file
3f0eddf
Add digest and fix the layout
a7a73fb
Remove unused build file
94624bb
Add signing
7280b9f
Fixed README and moduel name
6fbbad8
Change the distribution base name.
06cd4de
Add ASF license header to the new files
9e57ee8
Resolve comments
a80ac3a
Resolve the comments
00a6739
Use artifact dependency instead of cross-module task dependency
a029404
Remove the tarball and zip file build in admin and server module
62db142
Split run.sh to two commands server, admin.
be866e7
Split run.sh to two commands server, admin.
8744252
Update README.md
c62c61b
Add back DISCLAIMER
76df496
Resolve comments
f9451c8
Resolve comments
8d0b09d
Resolve comments
545d886
Support command line java options
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<!-- | ||
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 | ||
``` | ||
|
||
For full usage instructions and configuration details, see the official Polaris docs at https://polaris.apache.org/. | ||
|
||
### Configuration | ||
|
||
Both components can be configured using environment variables or system properties. For example: | ||
|
||
```bash | ||
# Configure server port | ||
POLARIS_JAVA_OPTS="-Dquarkus.http.port=8080" bin/server | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: |
||
|
||
# Configure admin tool | ||
POLARIS_JAVA_OPTS="-Dpolaris.persistence.type=relational-jdbc" bin/admin | ||
|
||
# You can also set JAVA_OPTS as an environment variable | ||
export POLARIS_JAVA_OPTS="-Xms512m -Xmx1g -Dquarkus.http.port=8080" | ||
bin/server | ||
``` | ||
|
||
For more details on configuration, please refer to the Polaris documentation: | ||
https://polaris.apache.org/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/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. | ||
|
||
set -euo pipefail | ||
|
||
# Get the directory | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
cd "$SCRIPT_DIR/../server" | ||
|
||
# Get the Java command | ||
JAVA_CMD="${JAVA_HOME:+${JAVA_HOME%/}/bin/java}" | ||
JAVA_CMD="${JAVA_CMD:-$(command -v java)}" | ||
[ -x "$JAVA_CMD" ] || { echo "Java not found – set JAVA_HOME or add java to PATH." >&2; exit 1; } | ||
|
||
# Launch Quarkus | ||
exec "$JAVA_CMD" ${POLARIS_JAVA_OPTS:-} -jar quarkus-run.jar |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.