Skip to content

Commit e15f55a

Browse files
committed
Quarkus-based Polaris service runtime
1 parent fbc2664 commit e15f55a

File tree

151 files changed

+4339
-5057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+4339
-5057
lines changed

Dockerfile

+28-8
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,36 @@ WORKDIR /app
3232
RUN rm -rf build
3333

3434
# Build the rest catalog
35-
RUN ./gradlew --no-daemon --info ${ECLIPSELINK_DEPS+"-PeclipseLinkDeps=$ECLIPSELINK_DEPS"} -PeclipseLink=$ECLIPSELINK clean prepareDockerDist
35+
RUN ./gradlew --no-daemon --info ${ECLIPSELINK_DEPS+"-PeclipseLinkDeps=$ECLIPSELINK_DEPS"} -PeclipseLink=$ECLIPSELINK clean :polaris-quarkus-service:build -x test
3636

3737
FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.21-1.1733995527
38-
WORKDIR /app
39-
COPY --from=build /app/dropwizard/service/build/docker-dist/bin /app/bin
40-
COPY --from=build /app/dropwizard/service/build/docker-dist/lib /app/lib
41-
COPY --from=build /app/polaris-server.yml /app
38+
39+
LABEL org.opencontainers.image.source=https://github.com/apache/polaris
40+
LABEL org.opencontainers.image.description="Apache Polaris (incubating)"
41+
LABEL org.opencontainers.image.licenses=Apache-2.0
42+
43+
ENV LANGUAGE='en_US:en'
44+
45+
USER root
46+
RUN groupadd --gid 10001 polaris \
47+
&& useradd --uid 10000 --gid polaris polaris \
48+
&& chown -R polaris:polaris /opt/jboss/container \
49+
&& chown -R polaris:polaris /deployments
50+
51+
USER polaris
52+
WORKDIR /home/polaris
53+
ENV USER=polaris
54+
ENV UID=10000
55+
ENV HOME=/home/polaris
56+
57+
# We make four distinct layers so if there are application changes the library layers can be re-used
58+
COPY --from=build --chown=polaris:polaris /app/dropwizard/service/build/quarkus-app/lib/ /deployments/lib/
59+
COPY --from=build --chown=polaris:polaris /app/dropwizard/service/build/quarkus-app/*.jar /deployments/
60+
COPY --from=build --chown=polaris:polaris /app/dropwizard/service/build/quarkus-app/app/ /deployments/app/
61+
COPY --from=build --chown=polaris:polaris /app/dropwizard/service/build/quarkus-app/quarkus/ /deployments/quarkus/
4262

4363
EXPOSE 8181
64+
EXPOSE 8182
4465

45-
# Run the resulting java binary
46-
ENTRYPOINT ["/app/bin/polaris-service"]
47-
CMD ["server", "polaris-server.yml"]
66+
ENV AB_JOLOKIA_OFF=""
67+
ENV JAVA_APP_JAR="/deployments/quarkus-run.jar"

0 commit comments

Comments
 (0)