1 Star 0 Fork 4

Atlas_btg/edgemanger

forked from AtlasEcosystem/edgemanger 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.sh 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
Kefeng Zhang (张可峰) 提交于 2021-01-08 14:44 . docker file
#!/bin/bash
COMPILE_PATH=`pwd`
APULISEDGE_CLOUD_DOCKERFLE="Dockerfile-cloud"
APULISEDGE_TICKER_DOCKERFLE="Dockerfile-ticker"
buildCloud()
{
local build_tag=$1
docker build . -f ${COMPILE_PATH}/${APULISEDGE_CLOUD_DOCKERFLE} -t apulis/apulisedge-cloud:${build_tag}
}
buildCloudTicker()
{
local build_tag=$1
docker build . -f ${COMPILE_PATH}/${APULISEDGE_TICKER_DOCKERFLE} -t apulis/apulisedge-ticker:${build_tag}
}
main()
{
OPTS=`getopt -q -o cat: --long cloud,agent,tag: -n "$0" -- "$@"`
eval set -- "$OPTS"
build_target=1
while true
do
case "$1" in
-c|--cloud)
build_target=1
shift 2
;;
-a|--agent)
build_target=1
shift 2
;;
-t|--tag)
build_tag=$2
shift 2
;;
--)
shift
break
;;
*)
echo "Internal error!";
exit 1
;;
esac
done
if [ -z ${build_tag} ];then
echo "must assign build tag"
echo "USAGE: $0 --tag 0.7"
exit 1
fi
if [ ${build_target} -eq 1 ];then
echo "build apulisedge cloud, tag = ${build_tag}"
buildCloud ${build_tag}
buildCloudTicker ${build_tag}
fi
}
# ===
# === main code start here
# ===
main "$@"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/biantanggui/edgemanger.git
git@gitee.com:biantanggui/edgemanger.git
biantanggui
edgemanger
edgemanger
master

搜索帮助