Ai
1 Star 0 Fork 0

Humor/ODriveFirmware

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dockerbuild.sh 855 Bytes
一键复制 编辑 原始数据 按行查看 历史
Brandon Lewis 提交于 2020-01-31 05:01 +08:00 . prefix container and image names with odrive
function cleanup {
echo "Removing previous build artifacts"
rm -rf build
docker rm odrive-build-cont
}
function gc {
cleanup
docker rmi odrive-build-img
docker image prune
}
function build {
cleanup
echo "Building the firmware"
docker build -t odrive-build-img .
echo "Create container"
docker create --name odrive-build-cont odrive-build-img:latest
echo "Extract build artifacts"
docker cp odrive-build-cont:ODrive/Firmware/build .
}
function usage {
echo "usage: $0 (build | cleanup | gc)"
echo
echo "build -- build in docker and extract the artifacts."
echo "cleanup -- remove build artifacts from previous build"
echo "gc -- remove all build images and containers"
}
case $1 in
build)
build
;;
cleanup)
cleanup
;;
gc)
gc
;;
*)
usage
;;
esac
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/humor_logic/ODriveFirmware.git
git@gitee.com:humor_logic/ODriveFirmware.git
humor_logic
ODriveFirmware
ODriveFirmware
master

搜索帮助