From 7cd47bb7691336395b6354e9b15cf34f3856fa88 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Wed, 31 Jul 2024 16:04:34 +0900 Subject: [PATCH] Add Polaris catalog docker image --- .github/workflows/ci.yml | 2 ++ .github/workflows/release.yml | 1 + bin/test.sh | 2 ++ testing/polaris_catalog/Dockerfile | 23 +++++++++++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 testing/polaris_catalog/Dockerfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63cfe2ce..a3116a0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,8 @@ jobs: - image: almalinux9-oj17-openldap-active-directory platforms: linux/amd64,linux/arm64 test: openldap-active-directory + - image: polaris_catalog + test: polaris_catalog - image: spark3-iceberg platforms: linux/amd64,linux/arm64 test: spark3-iceberg diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63a2feb4..78d733b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,6 +77,7 @@ jobs: testing/hdp3.1-hive-kerberized testing/hdp3.1-hive-kerberized-2 testing/hdp3.1-hive-kerberized-kms + testing/polaris_catalog ) multi_arch=( testing/almalinux9-oj11 diff --git a/bin/test.sh b/bin/test.sh index cee3631c..6984cfe6 100755 --- a/bin/test.sh +++ b/bin/test.sh @@ -180,6 +180,8 @@ for ARCH in "${platforms[@]}"; do if [[ ${ENVIRONMENT} == *"accumulo"* ]]; then retry check_health + if [[ ${ENVIRONMENT} == *"polaris_catalog"* ]]; then + retry check_health elif [[ ${ENVIRONMENT} == "kerberos" ]]; then run_kerberos_tests elif [[ ${ENVIRONMENT} == *"hive"* ]]; then diff --git a/testing/polaris_catalog/Dockerfile b/testing/polaris_catalog/Dockerfile new file mode 100644 index 00000000..f10ae8df --- /dev/null +++ b/testing/polaris_catalog/Dockerfile @@ -0,0 +1,23 @@ +# Licensed 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. + +FROM gradle:8.6-jdk21 + +RUN git clone https://github.com/polaris-catalog/polaris.git polaris + +WORKDIR polaris + +RUN gradle --no-daemon --info shadowJar + +EXPOSE 8181 + +CMD ["java", "-jar", "polaris-service/build/libs/polaris-service-1.0.0-all.jar", "server", "polaris-server.yml"]