This is an automated email from the ASF dual-hosted git repository.
FrankChen021 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 6bcf7dc183e Add lock to dependency cache for Dockerfile (#19424)
6bcf7dc183e is described below
commit 6bcf7dc183ebee66aed39113bc4a7263f3fa0e56
Author: Virushade <[email protected]>
AuthorDate: Fri May 8 09:56:26 2026 +0800
Add lock to dependency cache for Dockerfile (#19424)
---
distribution/docker/Dockerfile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/distribution/docker/Dockerfile b/distribution/docker/Dockerfile
index 447f9664c03..a6698ba54f3 100644
--- a/distribution/docker/Dockerfile
+++ b/distribution/docker/Dockerfile
@@ -35,7 +35,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
COPY . /src
WORKDIR /src
-RUN --mount=type=cache,target=/root/.m2 if [ "$BUILD_FROM_SOURCE" = "true" ];
then \
+RUN --mount=type=cache,target=/root/.m2,sharing=locked if [
"$BUILD_FROM_SOURCE" = "true" ]; then \
mvn -B -ff -q \
install \
-Pdist,bundle-contrib-exts \
@@ -43,7 +43,7 @@ RUN --mount=type=cache,target=/root/.m2 if [
"$BUILD_FROM_SOURCE" = "true" ]; th
-Dmaven.javadoc.skip=true -T1C \
; fi
-RUN --mount=type=cache,target=/root/.m2 VERSION=$(mvn -B -q
org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate \
+RUN --mount=type=cache,target=/root/.m2,sharing=locked VERSION=$(mvn -B -q
org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate \
-Dexpression=project.version -DforceStdout=true \
) \
&& tar -zxf ./distribution/target/apache-druid-${VERSION}-bin.tar.gz -C /opt \
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]