-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
882c8a1
commit 7c8a6f7
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |