Skip to content

Commit

Permalink
Trino connector Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinRay97 committed Jan 9, 2025
1 parent 882c8a1 commit 7c8a6f7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ndc-connector-trino.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Build stage
FROM registry.access.redhat.com/ubi9/openjdk-21:1.20-2 AS build

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'

WORKDIR /build
COPY . /build

# Run Gradle build
USER root
RUN ./gradlew :ndc-connector-snowflake:build --no-daemon --console=plain -x test

# Final stage
FROM registry.access.redhat.com/ubi9/openjdk-21:1.20-2

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
ENV JAVA_OPTS_APPEND="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager --add-opens java.base/java.nio=ALL-UNNAMED"
ENV JAVA_APP_JAR="/app/quarkus-run.jar"

WORKDIR /app

COPY --from=build /build/ndc-connector-trino/build/quarkus-app /app

EXPOSE 8080 5005
ENTRYPOINT [ "/opt/jboss/container/java/run/run-java.sh" ]

0 comments on commit 7c8a6f7

Please sign in to comment.