mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-06-27 04:22:05 +00:00
parent
fcd0c4114f
commit
8bb055fc9e
@ -30,11 +30,11 @@ runs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y unixodbc-dev python3-venv librdkafka-dev gcc libsasl2-dev build-essential libssl-dev libffi-dev \
|
||||
librdkafka-dev unixodbc-dev libevent-dev wkhtmltopdf libkrb5-dev jq
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
if: inputs.is_ingestion == 'false'
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 17
|
||||
java-version: 21
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Install antlr cli
|
||||
|
@ -26,10 +26,10 @@ runs:
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# ---- Setup Java --------------------------------------------------------------
|
||||
- name: Setup JDK 17
|
||||
- name: Setup JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
4
.github/workflows/airflow-apis-tests.yml
vendored
4
.github/workflows/airflow-apis-tests.yml
vendored
@ -62,10 +62,10 @@ jobs:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Set up Python 3.10
|
||||
|
@ -27,10 +27,10 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 17
|
||||
java-version: 21
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Install antlr cli
|
||||
|
4
.github/workflows/java-checkstyle.yml
vendored
4
.github/workflows/java-checkstyle.yml
vendored
@ -67,10 +67,10 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Run checkstyle
|
||||
|
4
.github/workflows/maven-build.yml
vendored
4
.github/workflows/maven-build.yml
vendored
@ -84,11 +84,11 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
if: steps.cache-output.outputs.exit-code == 0
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Install Ubuntu dependencies
|
||||
|
@ -83,11 +83,11 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
if: steps.cache-output.outputs.exit-code == 0
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Install Ubuntu dependencies
|
||||
|
4
.github/workflows/maven-sonar-build.yml
vendored
4
.github/workflows/maven-sonar-build.yml
vendored
@ -70,11 +70,11 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
if: steps.cache-output.outputs.exit-code == 0
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: "17"
|
||||
java-version: "21"
|
||||
distribution: "temurin"
|
||||
|
||||
- name: Install Ubuntu dependencies
|
||||
|
4
.github/workflows/publish-maven-package.yml
vendored
4
.github/workflows/publish-maven-package.yml
vendored
@ -43,10 +43,10 @@ jobs:
|
||||
swap-storage: true
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 17
|
||||
java-version: 21
|
||||
distribution: "temurin"
|
||||
server-id: ossrh
|
||||
server-username: MAVEN_USERNAME
|
||||
|
4
.github/workflows/py-nox-ci.yml
vendored
4
.github/workflows/py-nox-ci.yml
vendored
@ -31,10 +31,10 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libkrb5-dev build-essential
|
||||
|
||||
- name: Setup JDK 17
|
||||
- name: Setup JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Generate Python Data Models
|
||||
|
4
.github/workflows/security-scan.yml
vendored
4
.github/workflows/security-scan.yml
vendored
@ -41,10 +41,10 @@ jobs:
|
||||
with:
|
||||
python-version: 3.9
|
||||
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Install Ubuntu dependencies
|
||||
|
@ -46,10 +46,10 @@ jobs:
|
||||
docker-images: true
|
||||
swap-storage: true
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 17
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Generating Data Models
|
||||
|
@ -96,21 +96,16 @@ if [ "x$OPENMETADATA_DEBUG" != "x" ]; then
|
||||
OPENMETADATA_OPTS="$JAVA_DEBUG_OPTS $OPENMETADATA_OPTS"
|
||||
fi
|
||||
|
||||
# GC options
|
||||
# GC options for Java 21
|
||||
GC_LOG_FILE_NAME='openmetadata-gc.log'
|
||||
if [ -z "$OPENMETADATA_GC_LOG_OPTS" ]; then
|
||||
JAVA_MAJOR_VERSION=$($JAVA -version 2>&1 | sed -E -n 's/.* version "([0-9]*).*$/\1/p')
|
||||
if [[ "$JAVA_MAJOR_VERSION" -ge "9" ]] ; then
|
||||
OPENMETADATA_GC_LOG_OPTS="-Xlog:gc*:file=$LOG_DIR/$GC_LOG_FILE_NAME:time,tags:filecount=10,filesize=102400"
|
||||
else
|
||||
OPENMETADATA_GC_LOG_OPTS="-Xloggc:$LOG_DIR/$GC_LOG_FILE_NAME -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M"
|
||||
fi
|
||||
OPENMETADATA_GC_LOG_OPTS="-Xlog:gc*,gc+heap=info,gc+ergo=debug:file=$LOG_DIR/$GC_LOG_FILE_NAME:time,level,tags:filecount=10,filesize=102400"
|
||||
fi
|
||||
|
||||
|
||||
# JVM performance options
|
||||
# JVM performance options optimized for Java 21
|
||||
if [ -z "$OPENMETADATA_JVM_PERFORMANCE_OPTS" ]; then
|
||||
OPENMETADATA_JVM_PERFORMANCE_OPTS="-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Djava.awt.headless=true"
|
||||
OPENMETADATA_JVM_PERFORMANCE_OPTS="-server -XX:+UseG1GC -XX:+UseStringDeduplication -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:+UseLargePages -XX:+OptimizeStringConcat -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -Djava.awt.headless=true"
|
||||
fi
|
||||
|
||||
#Application classname
|
||||
|
@ -26,7 +26,7 @@ EXPOSE 8585
|
||||
RUN adduser -D openmetadata && \
|
||||
apk update && \
|
||||
apk upgrade && \
|
||||
apk add --update --no-cache bash openjdk17-jre
|
||||
apk add --update --no-cache bash openjdk21-jre
|
||||
|
||||
COPY --chown=openmetadata:openmetadata --from=build /opt/openmetadata /opt/openmetadata
|
||||
COPY --chmod=755 docker/openmetadata-start.sh /
|
||||
|
@ -37,7 +37,7 @@ LABEL org.open-metadata.commit-id=$COMMIT_ID
|
||||
EXPOSE 8585 8586
|
||||
RUN adduser -D openmetadata && apk update && \
|
||||
apk upgrade && \
|
||||
apk add --update --no-cache bash openjdk17-jre
|
||||
apk add --update --no-cache bash openjdk21-jre
|
||||
|
||||
COPY --chown=openmetadata:openmetadata --from=build /opt/openmetadata /opt/openmetadata
|
||||
COPY --chmod=755 docker/openmetadata-start.sh ./
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
<artifactId>openmetadata-java-client</artifactId>
|
||||
<properties>
|
||||
<java.version>17</java.version>
|
||||
<java.version>21</java.version>
|
||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||
<springfox-version>2.7.0</springfox-version>
|
||||
|
@ -15,8 +15,8 @@
|
||||
<module>openmetadata-java-client</module>
|
||||
</modules>
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<profiles>
|
||||
|
@ -12,8 +12,8 @@
|
||||
<artifactId>openmetadata-spec</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
<dropwizard.swagger.version>2.0.12-1</dropwizard.swagger.version>
|
||||
<maven-javadoc-plugin.version>3.6.0</maven-javadoc-plugin.version>
|
||||
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
|
||||
|
Loading…
x
Reference in New Issue
Block a user