From 7caae10623beebfa8e28eca98d45082277c5d312 Mon Sep 17 00:00:00 2001 From: Dev Hingu Date: Sun, 12 Jul 2026 19:15:35 +0530 Subject: [PATCH 1/2] fix: replace revision with ${project.version} in artifacts path (#352) --- computer/computer-dist/pom.xml | 4 ++-- computer/computer-k8s-operator/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/computer/computer-dist/pom.xml b/computer/computer-dist/pom.xml index 5ae7a5a3f..8cbc92ce4 100644 --- a/computer/computer-dist/pom.xml +++ b/computer/computer-dist/pom.xml @@ -109,10 +109,10 @@ - - - hugegraph-computer-operator-${revision} + hugegraph-computer-operator-${project.version} org.apache.maven.plugins From 8cd2f1830c113998bd7450e38de6592515fe6034 Mon Sep 17 00:00:00 2001 From: imbajin Date: Sun, 12 Jul 2026 22:40:48 +0800 Subject: [PATCH 2/2] refactor(vermeer): cross-compile Docker binaries (#353) * refactor(vermeer): cross-compile Docker binaries - pin the Go builder to the native build platform - cross-compile binaries for each requested target platform - cache Go modules and compiler artifacts across builds - isolate UI dependency downloads from source changes * perf(vermeer): scope target build arguments - keep target-neutral preparation cacheable across platforms - expose target OS and architecture only to final compilation - preserve native builder cross-compilation behavior --- vermeer/Dockerfile | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/vermeer/Dockerfile b/vermeer/Dockerfile index 44da2502b..daa70b9f7 100644 --- a/vermeer/Dockerfile +++ b/vermeer/Dockerfile @@ -14,14 +14,27 @@ # See the License for the specific language governing permissions and # limitations under the License. # -FROM golang:1.23-alpine AS builder +FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS builder RUN apk add --no-cache npm bash curl -COPY ./ /src/ WORKDIR /src/ ENV CGO_ENABLED="0" + +COPY go.mod go.sum ./ +RUN --mount=type=cache,target=/go/pkg/mod go mod download + +COPY scripts/download_ui_assets.sh ./scripts/ +COPY ui/package.json ./ui/ RUN ./scripts/download_ui_assets.sh -RUN cd asset && go generate -RUN go build -o /go/bin/app + +COPY ./ ./ +RUN --mount=type=cache,target=/go/pkg/mod \ + --mount=type=cache,target=/root/.cache/go-build \ + cd asset && go generate +ARG TARGETOS +ARG TARGETARCH +RUN --mount=type=cache,target=/go/pkg/mod \ + --mount=type=cache,target=/root/.cache/go-build \ + GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /go/bin/app FROM alpine EXPOSE 8080