-
Notifications
You must be signed in to change notification settings - Fork 586
perf(docker): improve pd/store/server image build cache efficiency #2981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # Keep this aligned with .gitignore first to avoid duplicate drift. | ||
|
|
||
| # VCS and CI metadata | ||
| .git | ||
| .github/ | ||
| .svn/ | ||
|
|
||
| # IDE and local assistant metadata | ||
| .idea/ | ||
| .vscode/ | ||
| .serena/ | ||
| CLAUDE.md | ||
| CLAUDE_*.md | ||
| GEMINI.md | ||
| copilot-instructions.md | ||
| .copilot-instructions.md | ||
| cursor-instructions.md | ||
| .cursor-instructions.md | ||
| cursor.md | ||
| windsurf.md | ||
| windsurf-instructions.md | ||
| codeium.md | ||
| codeium-instructions.md | ||
| .ai-instructions.md | ||
| *.ai-prompt.md | ||
| WARP.md | ||
|
|
||
| # Build outputs and local data | ||
| **/target/ | ||
| **/build/ | ||
| **/node_modules/ | ||
| hugegraph-server/hugegraph-dist/docker/data/ | ||
| **/pd_data/ | ||
| **/storage/ | ||
| upload-files/ | ||
| output/ | ||
| apache-hugegraph-*/ | ||
|
|
||
| # Local temp and editor files | ||
| .DS_Store | ||
| */.DS_Store | ||
| **/*.DS_Store | ||
| Thumbs.db | ||
| *.orig | ||
| *.rej | ||
| *.diff | ||
| *.patch | ||
| *.tmp | ||
| *.cache | ||
| *.swp | ||
| *.log | ||
| *.pyc | ||
| *.sdf | ||
| *.suo | ||
| *.vcxproj.user | ||
|
|
||
| # Java/IDE project files | ||
| .apt_generated/ | ||
| .classpath | ||
| .factorypath | ||
| .project | ||
| .settings/ | ||
| .springBeans | ||
| .sts4-cache/ | ||
| *.iws | ||
| *.iml | ||
| *.ipr | ||
|
|
||
| # Repo files that do not affect image contents | ||
| /docker/ | ||
| /BUILDING.md | ||
| /CONTRIBUTING.md | ||
| /README.md |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,5 @@ | ||||||||||||||||||||||||||||||||||||||||||||||
| # syntax=docker/dockerfile:1.7 | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| # | ||||||||||||||||||||||||||||||||||||||||||||||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||||||||||||||||||||||||||||||||||||||||||||||
| # contributor license agreements. See the NOTICE file distributed with | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -19,11 +21,68 @@ | |||||||||||||||||||||||||||||||||||||||||||||
| # 1st stage: build source code | ||||||||||||||||||||||||||||||||||||||||||||||
| FROM maven:3.9.0-eclipse-temurin-11 AS build | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| COPY . /pkg | ||||||||||||||||||||||||||||||||||||||||||||||
| WORKDIR /pkg | ||||||||||||||||||||||||||||||||||||||||||||||
| ARG MAVEN_ARGS | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| RUN mvn package $MAVEN_ARGS -e -B -ntp -Dmaven.test.skip=true -Dmaven.javadoc.skip=true && pwd && ls -l && rm \ | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY pom.xml ./ | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/pom.xml ./hugegraph-cluster-test/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-commons/pom.xml ./hugegraph-commons/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-commons/hugegraph-common/pom.xml ./hugegraph-commons/hugegraph-common/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-commons/hugegraph-rpc/pom.xml ./hugegraph-commons/hugegraph-rpc/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/pom.xml ./hugegraph-pd/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-cli/pom.xml ./hugegraph-pd/hg-pd-cli/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-client/pom.xml ./hugegraph-pd/hg-pd-client/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-common/pom.xml ./hugegraph-pd/hg-pd-common/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-core/pom.xml ./hugegraph-pd/hg-pd-core/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-dist/pom.xml ./hugegraph-pd/hg-pd-dist/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-grpc/pom.xml ./hugegraph-pd/hg-pd-grpc/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-service/pom.xml ./hugegraph-pd/hg-pd-service/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-test/pom.xml ./hugegraph-pd/hg-pd-test/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/pom.xml ./hugegraph-server/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/hugegraph-api/pom.xml ./hugegraph-server/hugegraph-api/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/hugegraph-cassandra/pom.xml ./hugegraph-server/hugegraph-cassandra/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/hugegraph-core/pom.xml ./hugegraph-server/hugegraph-core/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+27
to
+47
|
||||||||||||||||||||||||||||||||||||||||||||||
| COPY pom.xml ./ | |
| COPY hugegraph-cluster-test/pom.xml ./hugegraph-cluster-test/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml | |
| COPY hugegraph-commons/pom.xml ./hugegraph-commons/pom.xml | |
| COPY hugegraph-commons/hugegraph-common/pom.xml ./hugegraph-commons/hugegraph-common/pom.xml | |
| COPY hugegraph-commons/hugegraph-rpc/pom.xml ./hugegraph-commons/hugegraph-rpc/pom.xml | |
| COPY hugegraph-pd/pom.xml ./hugegraph-pd/pom.xml | |
| COPY hugegraph-pd/hg-pd-cli/pom.xml ./hugegraph-pd/hg-pd-cli/pom.xml | |
| COPY hugegraph-pd/hg-pd-client/pom.xml ./hugegraph-pd/hg-pd-client/pom.xml | |
| COPY hugegraph-pd/hg-pd-common/pom.xml ./hugegraph-pd/hg-pd-common/pom.xml | |
| COPY hugegraph-pd/hg-pd-core/pom.xml ./hugegraph-pd/hg-pd-core/pom.xml | |
| COPY hugegraph-pd/hg-pd-dist/pom.xml ./hugegraph-pd/hg-pd-dist/pom.xml | |
| COPY hugegraph-pd/hg-pd-grpc/pom.xml ./hugegraph-pd/hg-pd-grpc/pom.xml | |
| COPY hugegraph-pd/hg-pd-service/pom.xml ./hugegraph-pd/hg-pd-service/pom.xml | |
| COPY hugegraph-pd/hg-pd-test/pom.xml ./hugegraph-pd/hg-pd-test/pom.xml | |
| COPY hugegraph-server/pom.xml ./hugegraph-server/pom.xml | |
| COPY hugegraph-server/hugegraph-api/pom.xml ./hugegraph-server/hugegraph-api/pom.xml | |
| COPY hugegraph-server/hugegraph-cassandra/pom.xml ./hugegraph-server/hugegraph-cassandra/pom.xml | |
| COPY hugegraph-server/hugegraph-core/pom.xml ./hugegraph-server/hugegraph-core/pom.xml | |
| COPY --parents **/pom.xml ./ |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,5 @@ | ||||||||||||||||||||||||||||||||||||||||||||||
| # syntax=docker/dockerfile:1.7 | ||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||
| # syntax=docker/dockerfile:1.7 | |
| # syntax=docker/dockerfile:1 | |
| # NOTE: This Dockerfile requires Docker BuildKit to be enabled (DOCKER_BUILDKIT=1). |
Copilot
AI
Mar 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This explicit, duplicated list of COPY ... pom.xml entries is likely to become brittle: adding/removing Maven modules will require updating this list (and the equivalent lists in other Dockerfiles), otherwise the mvn dependency:go-offline step can fail due to missing module directories/poms. Consider using BuildKit-supported patterns like COPY --parents **/pom.xml ./ (optionally alongside root-level build files) to reduce duplication while keeping the cache-friendly layer structure.
| COPY pom.xml ./ | |
| COPY hugegraph-cluster-test/pom.xml ./hugegraph-cluster-test/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml | |
| COPY hugegraph-commons/pom.xml ./hugegraph-commons/pom.xml | |
| COPY hugegraph-commons/hugegraph-common/pom.xml ./hugegraph-commons/hugegraph-common/pom.xml | |
| COPY hugegraph-commons/hugegraph-rpc/pom.xml ./hugegraph-commons/hugegraph-rpc/pom.xml | |
| COPY hugegraph-pd/pom.xml ./hugegraph-pd/pom.xml | |
| COPY hugegraph-pd/hg-pd-cli/pom.xml ./hugegraph-pd/hg-pd-cli/pom.xml | |
| COPY hugegraph-pd/hg-pd-client/pom.xml ./hugegraph-pd/hg-pd-client/pom.xml | |
| COPY hugegraph-pd/hg-pd-common/pom.xml ./hugegraph-pd/hg-pd-common/pom.xml | |
| COPY hugegraph-pd/hg-pd-core/pom.xml ./hugegraph-pd/hg-pd-core/pom.xml | |
| COPY hugegraph-pd/hg-pd-dist/pom.xml ./hugegraph-pd/hg-pd-dist/pom.xml | |
| COPY hugegraph-pd/hg-pd-grpc/pom.xml ./hugegraph-pd/hg-pd-grpc/pom.xml | |
| COPY hugegraph-pd/hg-pd-service/pom.xml ./hugegraph-pd/hg-pd-service/pom.xml | |
| COPY hugegraph-pd/hg-pd-test/pom.xml ./hugegraph-pd/hg-pd-test/pom.xml | |
| COPY hugegraph-server/pom.xml ./hugegraph-server/pom.xml | |
| COPY hugegraph-server/hugegraph-api/pom.xml ./hugegraph-server/hugegraph-api/pom.xml | |
| COPY hugegraph-server/hugegraph-cassandra/pom.xml ./hugegraph-server/hugegraph-cassandra/pom.xml | |
| COPY hugegraph-server/hugegraph-core/pom.xml ./hugegraph-server/hugegraph-core/pom.xml | |
| COPY --parents pom.xml **/pom.xml ./ |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,5 @@ | ||||||||||||||||||||||||||||||||||||||||||||||
| # syntax=docker/dockerfile:1.7 | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+2
|
||||||||||||||||||||||||||||||||||||||||||||||
| # | ||||||||||||||||||||||||||||||||||||||||||||||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||||||||||||||||||||||||||||||||||||||||||||||
| # contributor license agreements. See the NOTICE file distributed with | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -19,11 +21,68 @@ | |||||||||||||||||||||||||||||||||||||||||||||
| # 1st stage: build source code | ||||||||||||||||||||||||||||||||||||||||||||||
| FROM maven:3.9.0-eclipse-temurin-11 AS build | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| COPY . /pkg | ||||||||||||||||||||||||||||||||||||||||||||||
| WORKDIR /pkg | ||||||||||||||||||||||||||||||||||||||||||||||
| ARG MAVEN_ARGS | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| RUN mvn package $MAVEN_ARGS -e -B -ntp -DskipTests -Dmaven.javadoc.skip=true && pwd && ls -l && rm \ | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY pom.xml ./ | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/pom.xml ./hugegraph-cluster-test/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-commons/pom.xml ./hugegraph-commons/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-commons/hugegraph-common/pom.xml ./hugegraph-commons/hugegraph-common/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-commons/hugegraph-rpc/pom.xml ./hugegraph-commons/hugegraph-rpc/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/pom.xml ./hugegraph-pd/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-cli/pom.xml ./hugegraph-pd/hg-pd-cli/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-client/pom.xml ./hugegraph-pd/hg-pd-client/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-common/pom.xml ./hugegraph-pd/hg-pd-common/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-core/pom.xml ./hugegraph-pd/hg-pd-core/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-dist/pom.xml ./hugegraph-pd/hg-pd-dist/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-grpc/pom.xml ./hugegraph-pd/hg-pd-grpc/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-service/pom.xml ./hugegraph-pd/hg-pd-service/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-test/pom.xml ./hugegraph-pd/hg-pd-test/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/pom.xml ./hugegraph-server/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/hugegraph-api/pom.xml ./hugegraph-server/hugegraph-api/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/hugegraph-cassandra/pom.xml ./hugegraph-server/hugegraph-cassandra/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/hugegraph-core/pom.xml ./hugegraph-server/hugegraph-core/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+27
to
+47
|
||||||||||||||||||||||||||||||||||||||||||||||
| COPY pom.xml ./ | |
| COPY hugegraph-cluster-test/pom.xml ./hugegraph-cluster-test/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml | |
| COPY hugegraph-commons/pom.xml ./hugegraph-commons/pom.xml | |
| COPY hugegraph-commons/hugegraph-common/pom.xml ./hugegraph-commons/hugegraph-common/pom.xml | |
| COPY hugegraph-commons/hugegraph-rpc/pom.xml ./hugegraph-commons/hugegraph-rpc/pom.xml | |
| COPY hugegraph-pd/pom.xml ./hugegraph-pd/pom.xml | |
| COPY hugegraph-pd/hg-pd-cli/pom.xml ./hugegraph-pd/hg-pd-cli/pom.xml | |
| COPY hugegraph-pd/hg-pd-client/pom.xml ./hugegraph-pd/hg-pd-client/pom.xml | |
| COPY hugegraph-pd/hg-pd-common/pom.xml ./hugegraph-pd/hg-pd-common/pom.xml | |
| COPY hugegraph-pd/hg-pd-core/pom.xml ./hugegraph-pd/hg-pd-core/pom.xml | |
| COPY hugegraph-pd/hg-pd-dist/pom.xml ./hugegraph-pd/hg-pd-dist/pom.xml | |
| COPY hugegraph-pd/hg-pd-grpc/pom.xml ./hugegraph-pd/hg-pd-grpc/pom.xml | |
| COPY hugegraph-pd/hg-pd-service/pom.xml ./hugegraph-pd/hg-pd-service/pom.xml | |
| COPY hugegraph-pd/hg-pd-test/pom.xml ./hugegraph-pd/hg-pd-test/pom.xml | |
| COPY hugegraph-server/pom.xml ./hugegraph-server/pom.xml | |
| COPY hugegraph-server/hugegraph-api/pom.xml ./hugegraph-server/hugegraph-api/pom.xml | |
| COPY hugegraph-server/hugegraph-cassandra/pom.xml ./hugegraph-server/hugegraph-cassandra/pom.xml | |
| COPY hugegraph-server/hugegraph-core/pom.xml ./hugegraph-server/hugegraph-core/pom.xml | |
| COPY --parents **/pom.xml ./ |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,5 @@ | ||||||||||||||||||||||||||||||||||||||||||||||
| # syntax=docker/dockerfile:1.7 | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+2
|
||||||||||||||||||||||||||||||||||||||||||||||
| # | ||||||||||||||||||||||||||||||||||||||||||||||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||||||||||||||||||||||||||||||||||||||||||||||
| # contributor license agreements. See the NOTICE file distributed with | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -19,11 +21,68 @@ | |||||||||||||||||||||||||||||||||||||||||||||
| # 1st stage: build source code | ||||||||||||||||||||||||||||||||||||||||||||||
| FROM maven:3.9.0-eclipse-temurin-11 AS build | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| COPY . /pkg | ||||||||||||||||||||||||||||||||||||||||||||||
| WORKDIR /pkg | ||||||||||||||||||||||||||||||||||||||||||||||
| ARG MAVEN_ARGS | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| RUN mvn package $MAVEN_ARGS -e -B -ntp -Dmaven.test.skip=true -Dmaven.javadoc.skip=true && pwd && ls -l && rm \ | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY pom.xml ./ | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/pom.xml ./hugegraph-cluster-test/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-commons/pom.xml ./hugegraph-commons/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-commons/hugegraph-common/pom.xml ./hugegraph-commons/hugegraph-common/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-commons/hugegraph-rpc/pom.xml ./hugegraph-commons/hugegraph-rpc/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/pom.xml ./hugegraph-pd/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-cli/pom.xml ./hugegraph-pd/hg-pd-cli/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-client/pom.xml ./hugegraph-pd/hg-pd-client/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-common/pom.xml ./hugegraph-pd/hg-pd-common/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-core/pom.xml ./hugegraph-pd/hg-pd-core/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-dist/pom.xml ./hugegraph-pd/hg-pd-dist/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-grpc/pom.xml ./hugegraph-pd/hg-pd-grpc/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-service/pom.xml ./hugegraph-pd/hg-pd-service/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-pd/hg-pd-test/pom.xml ./hugegraph-pd/hg-pd-test/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/pom.xml ./hugegraph-server/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/hugegraph-api/pom.xml ./hugegraph-server/hugegraph-api/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/hugegraph-cassandra/pom.xml ./hugegraph-server/hugegraph-cassandra/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
| COPY hugegraph-server/hugegraph-core/pom.xml ./hugegraph-server/hugegraph-core/pom.xml | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+27
to
+47
|
||||||||||||||||||||||||||||||||||||||||||||||
| COPY pom.xml ./ | |
| COPY hugegraph-cluster-test/pom.xml ./hugegraph-cluster-test/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-dist/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-minicluster/pom.xml | |
| COPY hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml ./hugegraph-cluster-test/hugegraph-clustertest-test/pom.xml | |
| COPY hugegraph-commons/pom.xml ./hugegraph-commons/pom.xml | |
| COPY hugegraph-commons/hugegraph-common/pom.xml ./hugegraph-commons/hugegraph-common/pom.xml | |
| COPY hugegraph-commons/hugegraph-rpc/pom.xml ./hugegraph-commons/hugegraph-rpc/pom.xml | |
| COPY hugegraph-pd/pom.xml ./hugegraph-pd/pom.xml | |
| COPY hugegraph-pd/hg-pd-cli/pom.xml ./hugegraph-pd/hg-pd-cli/pom.xml | |
| COPY hugegraph-pd/hg-pd-client/pom.xml ./hugegraph-pd/hg-pd-client/pom.xml | |
| COPY hugegraph-pd/hg-pd-common/pom.xml ./hugegraph-pd/hg-pd-common/pom.xml | |
| COPY hugegraph-pd/hg-pd-core/pom.xml ./hugegraph-pd/hg-pd-core/pom.xml | |
| COPY hugegraph-pd/hg-pd-dist/pom.xml ./hugegraph-pd/hg-pd-dist/pom.xml | |
| COPY hugegraph-pd/hg-pd-grpc/pom.xml ./hugegraph-pd/hg-pd-grpc/pom.xml | |
| COPY hugegraph-pd/hg-pd-service/pom.xml ./hugegraph-pd/hg-pd-service/pom.xml | |
| COPY hugegraph-pd/hg-pd-test/pom.xml ./hugegraph-pd/hg-pd-test/pom.xml | |
| COPY hugegraph-server/pom.xml ./hugegraph-server/pom.xml | |
| COPY hugegraph-server/hugegraph-api/pom.xml ./hugegraph-server/hugegraph-api/pom.xml | |
| COPY hugegraph-server/hugegraph-cassandra/pom.xml ./hugegraph-server/hugegraph-cassandra/pom.xml | |
| COPY hugegraph-server/hugegraph-core/pom.xml ./hugegraph-server/hugegraph-core/pom.xml | |
| COPY --parents **/pom.xml ./ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The BuildKit-specific features introduced here (the
# syntax=...directive andRUN --mount=type=cache) require Docker BuildKit to be enabled. If some environments still use the legacy builder (or run in restricted networks), this can fail because the frontend image may need to be pulled. Consider either documenting the BuildKit requirement in the Dockerfile comments and/or switching to a less specific frontend tag likedocker/dockerfile:1unless a1.7-only feature is required.