mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
build: build vpcagent container
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
FROM registry.cn-beijing.aliyuncs.com/yunionio/openvswitch:2.9.6-1
|
||||
|
||||
MAINTAINER "Yousong Zhou <zhouyousong@yunion.cn>"
|
||||
|
||||
RUN mkdir -p /opt/yunion/bin
|
||||
ADD ./_output/alpine-build/bin/vpcagent /opt/yunion/bin/vpcagent
|
||||
+15
-5
@@ -34,11 +34,21 @@ REGISTRY=${REGISTRY:-docker.io/yunion}
|
||||
TAG=${TAG:-latest}
|
||||
|
||||
build_bin() {
|
||||
if [[ "$1" == "climc" ]]; then
|
||||
GOOS=linux make cmd/$1 cmd/*cli
|
||||
else
|
||||
GOOS=linux make cmd/$1
|
||||
fi
|
||||
case "$1" in
|
||||
climc)
|
||||
GOOS=linux make cmd/$1 cmd/*cli
|
||||
;;
|
||||
vpcagent)
|
||||
docker run --rm \
|
||||
-v $SRC_DIR:/root/go/src/yunion.io/x/onecloud \
|
||||
-v $SRC_DIR/_output/alpine-build:/root/go/src/yunion.io/x/onecloud/_output \
|
||||
registry.cn-beijing.aliyuncs.com/yunionio/alpine-build:1.0-1 \
|
||||
/bin/sh -c "set -ex; cd /root/go/src/yunion.io/x/onecloud; make cmd/$1"
|
||||
;;
|
||||
*)
|
||||
GOOS=linux make cmd/$1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user