You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by yu...@apache.org on 2024/09/23 17:32:03 UTC

(polaris) branch main updated: Dockerfile: Add build arg for eclipselink dependencies (#311)

This is an automated email from the ASF dual-hosted git repository.

yufei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new f19f269  Dockerfile: Add build arg for eclipselink dependencies (#311)
f19f269 is described below

commit f19f26921d3c276b3f5612c61ddcd5ab67a0997f
Author: Marc <93...@users.noreply.github.com>
AuthorDate: Mon Sep 23 18:31:59 2024 +0100

    Dockerfile: Add build arg for eclipselink dependencies (#311)
---
 Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 0bc4f54..fd186c1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -22,6 +22,7 @@
 # subject to aggressive request rate limiting and bandwidth shaping.
 FROM registry.access.redhat.com/ubi9/openjdk-21:1.20-2.1721752936 as build
 ARG ECLIPSELINK=false
+ARG ECLIPSELINK_DEPS
 
 # Copy the REST catalog into the container
 COPY --chown=default:root . /app
@@ -31,7 +32,7 @@ WORKDIR /app
 RUN rm -rf build
 
 # Build the rest catalog
-RUN ./gradlew --no-daemon --info -PeclipseLink=$ECLIPSELINK clean prepareDockerDist
+RUN ./gradlew --no-daemon --info ${ECLIPSELINK_DEPS+"-PeclipseLinkDeps=$ECLIPSELINK_DEPS"} -PeclipseLink=$ECLIPSELINK clean prepareDockerDist
 
 FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1721752928
 WORKDIR /app