From 9d65da8299232af0243ebf8af963649cc6c79cfc 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 ++ .../polaris-catalog/docker-compose.yml | 4 ++++ testing/polaris-catalog/Dockerfile | 23 +++++++++++++++++++ 5 files changed, 32 insertions(+) create mode 100644 etc/compose/polaris-catalog/docker-compose.yml create mode 100644 testing/polaris-catalog/Dockerfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63cfe2ce..647e8852 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..5eb4b542 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..fb257b7b 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 + elif [[ ${ENVIRONMENT} == *"polaris"* ]]; then + test true elif [[ ${ENVIRONMENT} == "kerberos" ]]; then run_kerberos_tests elif [[ ${ENVIRONMENT} == *"hive"* ]]; then diff --git a/etc/compose/polaris-catalog/docker-compose.yml b/etc/compose/polaris-catalog/docker-compose.yml new file mode 100644 index 00000000..33610b56 --- /dev/null +++ b/etc/compose/polaris-catalog/docker-compose.yml @@ -0,0 +1,4 @@ +version: '2.0' +services: + polaris: + image: testing/polaris-catalog:latest diff --git a/testing/polaris-catalog/Dockerfile b/testing/polaris-catalog/Dockerfile new file mode 100644 index 00000000..da2bbabc --- /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.9-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"]