mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-29 03:51:54 +08:00
esxi-agent 编译方式兼容 arm64
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-5 as build
|
||||
ARG TARGETPLATFORM
|
||||
ARG BUILDPLATFORM
|
||||
RUN mkdir -p /root/go/src/yunion.io/x/onecloud
|
||||
COPY . /root/go/src/yunion.io/x/onecloud
|
||||
|
||||
WORKDIR /root/go/src/yunion.io/x/onecloud
|
||||
RUN make cmd/esxi-agent
|
||||
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/onecloud-base:v0.2
|
||||
|
||||
MAINTAINER "Yaoqi Wan wanyaoqi@yunionyun.com"
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
COPY --from=build /root/go/src/yunion.io/x/onecloud/build/esxi-agent/root/opt/ /opt/
|
||||
COPY --from=build /root/go/src/yunion.io/x/onecloud/_output/bin/esxi-agent /opt/yunion/bin/esxi-agent
|
||||
@@ -119,7 +119,7 @@ build_process_with_buildx() {
|
||||
fi
|
||||
|
||||
case "$component" in
|
||||
host | esxi-agent | torrent)
|
||||
host | torrent)
|
||||
buildx_and_push $img_name $DOCKER_DIR/multi-arch/Dockerfile.$component $SRC_DIR $arch
|
||||
;;
|
||||
*)
|
||||
@@ -151,6 +151,9 @@ for component in $COMPONENTS; do
|
||||
fi
|
||||
echo "Start to build component: $component"
|
||||
if [[ $component == baremetal-agent ]]; then
|
||||
if [[ "$ARCH" == "arm64" ]]; then
|
||||
continue
|
||||
fi
|
||||
build_process $component
|
||||
continue
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user