Skip to content

Commit 66c3563

Browse files
committed
(workflow): use polaris base
1 parent 923fad9 commit 66c3563

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

Dockerfile.polaris

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
1-
FROM gitscm/git AS src
2-
ARG POLARIS_VERSION=0.9.x
1+
ARG BASE_IMAGE=ghcr.io/kameshsampath/polaris-spark-devbox/polaris-base
32

4-
# clone the Polaris repository
5-
RUN git clone -b ${POLARIS_VERSION} https://github.com/apache/polaris.git
3+
FROM $BASE_IMAGE
64

7-
FROM registry.access.redhat.com/ubi9/openjdk-21:1.20-2.1726695192 AS build
8-
ARG ECLIPSELINK=false
9-
ARG ECLIPSELINK_DEPS
10-
11-
# Copy the REST catalog into the container
12-
COPY --from=src --chown=default:root polaris/ /app
13-
14-
# Set the working directory in the container, nuke any existing builds
155
WORKDIR /app
16-
RUN rm -rf build
17-
18-
# Build the rest catalog
19-
RUN ./gradlew --no-daemon --info ${ECLIPSELINK_DEPS+"-PeclipseLinkDeps=$ECLIPSELINK_DEPS"} -PeclipseLink=$ECLIPSELINK clean prepareDockerDist
20-
21-
FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1729089285
22-
23-
WORKDIR /app
24-
25-
COPY --from=build /app/dropwizard/service/build/docker-dist/bin /app/bin
26-
COPY --from=build /app/dropwizard/service/build/docker-dist/lib /app/lib
27-
COPY --from=build /app/polaris-server.yml /app
286

297
USER root
308

0 commit comments

Comments
 (0)