Skip to content

Commit

Permalink
Investigate component build error (#2341)
Browse files Browse the repository at this point in the history
* fix: export config

Signed-off-by: hlts2 <[email protected]>

* fix: disable build cache

Signed-off-by: hlts2 <[email protected]>

* fix: platform kind

Signed-off-by: hlts2 <[email protected]>

* Revert "fix: disable build cache"

This reverts commit 5ae9765.

* Revert "fix: export config"

This reverts commit ee8b964.

* fix: delete gcc

Signed-off-by: hlts2 <[email protected]>

* fix: BUILDPLATFORM to TARGETPLATFORM

Signed-off-by: hlts2 <[email protected]>

---------

Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 authored Feb 10, 2024
1 parent eb57543 commit 6bc0591
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 72 deletions.
13 changes: 2 additions & 11 deletions dockers/agent/core/faiss/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -52,15 +52,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
intel-mkl \
unzip \
upx \
&& if [ "${TARGETARCH}" = "amd64" ] ; then \
apt-get install -y --no-install-recommends --fix-missing gcc-${XARCH}-${TARGETOS}-gnu; \
export CC=${XARCH}-${TARGETOS}-gnu-gcc; \
export CC_FOR_TARGET=${CC}; \
elif [ "${TARGETARCH}" = "arm64" ] ; then \
apt-get install -y --no-install-recommends --fix-missing gcc-${AARCH}-${TARGETOS}-gnu; \
export CC=${AARCH}-${TARGETOS}-gnu-gcc; \
export CC_FOR_TARGET=${CC}; \
fi \
&& ldconfig \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -117,7 +108,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ubuntu:devel
FROM --platform=${TARGETPLATFORM} ubuntu:devel
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME faiss
Expand Down
13 changes: 2 additions & 11 deletions dockers/agent/core/ngt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG TARGETARCH
ARG TARGETOS
Expand Down Expand Up @@ -54,15 +54,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libopenblas-dev \
unzip \
upx \
&& if [ "${TARGETARCH}" = "amd64" ] ; then \
apt-get install -y --no-install-recommends --fix-missing gcc-${XARCH}-${TARGETOS}-gnu; \
export CC=${XARCH}-${TARGETOS}-gnu-gcc; \
export CC_FOR_TARGET=${CC}; \
elif [ "${TARGETARCH}" = "arm64" ] ; then \
apt-get install -y --no-install-recommends --fix-missing gcc-${AARCH}-${TARGETOS}-gnu; \
export CC=${AARCH}-${TARGETOS}-gnu-gcc; \
export CC_FOR_TARGET=${CC}; \
fi \
&& ldconfig \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand Down Expand Up @@ -118,7 +109,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME ngt
Expand Down
4 changes: 2 additions & 2 deletions dockers/agent/sidecar/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -94,7 +94,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
make GOARCH=${TARGETARCH} GOOS=${TARGETOS} REPO=${ORG} NAME=${REPO} cmd/${PKG}/${APP_NAME} \
&& mv "cmd/${PKG}/${APP_NAME}" "/usr/bin/${APP_NAME}"

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME sidecar
Expand Down
2 changes: 1 addition & 1 deletion dockers/ci/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder
LABEL maintainer="${MAINTAINER}"

ARG GO_VERSION
Expand Down
2 changes: 1 addition & 1 deletion dockers/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

# skipcq: DOK-DL3026
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder
LABEL maintainer="${MAINTAINER}"

ARG GO_VERSION
Expand Down
4 changes: 2 additions & 2 deletions dockers/discoverer/k8s/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -94,7 +94,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME discoverer
Expand Down
4 changes: 2 additions & 2 deletions dockers/gateway/filter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -93,7 +93,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME filter
Expand Down
4 changes: 2 additions & 2 deletions dockers/gateway/lb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -93,7 +93,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME lb
Expand Down
4 changes: 2 additions & 2 deletions dockers/gateway/mirror/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -92,7 +92,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
make GOARCH=${TARGETARCH} GOOS=${TARGETOS} REPO=${ORG} NAME=${REPO} cmd/${PKG}/${APP_NAME} \
&& mv "cmd/${PKG}/${APP_NAME}" "/usr/bin/${APP_NAME}"

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer "${MAINTAINER}"

ENV APP_NAME mirror
Expand Down
4 changes: 2 additions & 2 deletions dockers/index/job/correction/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -93,7 +93,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME index-correction
Expand Down
4 changes: 2 additions & 2 deletions dockers/index/job/creation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -93,7 +93,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME index-creation
Expand Down
4 changes: 2 additions & 2 deletions dockers/index/job/readreplica/rotate/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -93,7 +93,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME readreplica-rotate
Expand Down
4 changes: 2 additions & 2 deletions dockers/index/job/save/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -93,7 +93,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME index-save
Expand Down
4 changes: 2 additions & 2 deletions dockers/manager/index/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ARG DISTROLESS_IMAGE=gcr.io/distroless/static
ARG DISTROLESS_IMAGE_TAG=nonroot
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -93,7 +93,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME index
Expand Down
15 changes: 3 additions & 12 deletions dockers/operator/helm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ ARG VALD_HELM_OPERATOR_KIND="ValdHelmOperatorRelease"
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

# skipcq: DOK-DL3026
FROM --platform=${BUILDPLATFORM} quay.io/operator-framework/helm-operator:${OPERATOR_SDK_VERSION} AS operator
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} quay.io/operator-framework/helm-operator:${OPERATOR_SDK_VERSION} AS operator
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG OPERATOR_SDK_VERSION
Expand Down Expand Up @@ -64,15 +64,6 @@ RUN apt-get clean \
curl \
upx \
git \
&& if [ "${TARGETARCH}" = "amd64" ] ; then \
apt-get install -y --no-install-recommends --fix-missing gcc-${XARCH}-${TARGETOS}-gnu; \
export CC=${XARCH}-${TARGETOS}-gnu-gcc; \
export CC_FOR_TARGET=${CC}; \
elif [ "${TARGETARCH}" = "arm64" ] ; then \
apt-get install -y --no-install-recommends --fix-missing gcc-${AARCH}-${TARGETOS}-gnu; \
export CC=${AARCH}-${TARGETOS}-gnu-gcc; \
export CC_FOR_TARGET=${CC}; \
fi \
&& ldconfig \
&& apt-get clean \
&& rm -rf \
Expand Down Expand Up @@ -145,7 +136,7 @@ COPY --from=operator /usr/local/bin/${APP_NAME} /usr/bin/${APP_NAME}

RUN upx ${UPX_OPTIONS} "/usr/bin/${APP_NAME}"

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME helm-operator
Expand Down
13 changes: 2 additions & 11 deletions dockers/tools/benchmark/job/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ARG DISTROLESS_IMAGE_TAG=nonroot
ARG UPX_OPTIONS=-9
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG UPX_OPTIONS
Expand Down Expand Up @@ -56,15 +56,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
upx \
g++ \
git \
&& if [ "${TARGETARCH}" = "amd64" ] ; then \
apt-get install -y --no-install-recommends --fix-missing gcc-${XARCH}-${TARGETOS}-gnu; \
export CC=${XARCH}-${TARGETOS}-gnu-gcc; \
export CC_FOR_TARGET=${CC}; \
elif [ "${TARGETARCH}" = "arm64" ] ; then \
apt-get install -y --no-install-recommends --fix-missing gcc-${AARCH}-${TARGETOS}-gnu; \
export CC=${AARCH}-${TARGETOS}-gnu-gcc; \
export CC_FOR_TARGET=${CC}; \
fi \
&& ldconfig \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
Expand Down Expand Up @@ -134,7 +125,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME job
Expand Down
4 changes: 2 additions & 2 deletions dockers/tools/benchmark/operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ARG DISTROLESS_IMAGE_TAG=nonroot
ARG UPX_OPTIONS=-9
ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -96,7 +96,7 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \
WORKDIR ${GOPATH}/src/github.com/${ORG}/${REPO}/cmd/${PKG}
RUN cp sample.yaml /tmp/config.yaml

FROM --platform=${BUILDPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
FROM --platform=${TARGETPLATFORM} ${DISTROLESS_IMAGE}:${DISTROLESS_IMAGE_TAG}
LABEL maintainer="${MAINTAINER}"
ENV APP_NAME operator

Expand Down
6 changes: 3 additions & 3 deletions dockers/tools/cli/loadtest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

ARG MAINTAINER="vdaas.org vald team <[email protected]>"

FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder
FROM --platform=${TARGETPLATFORM} ubuntu:devel AS builder

ARG GO_VERSION
ARG TARGETARCH
Expand Down Expand Up @@ -118,9 +118,9 @@ RUN GO_VERSION="$(< GO_VERSION)" \
&& upx -9 -o "/usr/bin/${APP_NAME}" "${APP_NAME}"

# Start From Scratch For Running Environment
FROM --platform=${BUILDPLATFORM} ubuntu:devel
FROM --platform=${TARGETPLATFORM} ubuntu:devel
# Start From Alpine For Debug Environment
# FROM --platform=${BUILDPLATFORM} alpine:latest
# FROM --platform=${TARGETPLATFORM} alpine:latest
LABEL maintainer="${MAINTAINER}"

ENV APP_NAME loadtest
Expand Down

0 comments on commit 6bc0591

Please sign in to comment.