您尚未登录。

楼主 # 2023-02-14 11:03:41

taotieren
会员
注册时间: 2020-05-19
已发帖子: 108
积分: 148

适用于 CI/CD 的 KiCad 自动化脚本的 Docker 镜像

适用于 CI/CD 的 KiCad 自动化脚本的 Docker 镜像

https://github.com/INTI-CMNB/kicad_auto

kicad_auto
Docker image for KiCad automation scripts suitable for CI/CD

The main objetive is to use it as a base for KiCad automation in CI/CD environments.

The images are uploaded to Docker Hub and GitHub: Compatibility names, KiCad 5 and KiCad 6.

This image is based on setsoft/kicad_debian and adds some automation tools to it:

KiBot generate gerbers, drill, position files, etc.
KiAuto runs DRC/ERC, prints schematics, PCB, etc.
KiBoM generates HTML and CSV BoMs
InteractiveHtmlBom generates interactive HTML BoMs
PcbDraw generates 2D renders of the PCB
KiCost generates BoMs with prices
KiCad Git filters helps to reduce unneeded commits for KiCad files when using git
KiCad PCB diff a tool to see differences between PCBs, can be used as git plugin

[mw_shl_code=c,true]export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
export WORKDIR=RELATIVE_PATH_TO_KICAD_PROJECTS
export SUBDIR=SUBDIR_INSIDE_WORKDIR
docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
-v $(pwd)/$WORKDIR:/home/$USER/workdir \
--user $USER_ID:$GROUP_ID \
--env NO_AT_BRIDGE=1 \
--workdir="/home/$USER" \
--volume="/etc/group:/etc/group:ro" \
--volume="/home/$USER/.config/kicad:/home/$USER/.config/kicad:rw" \
--volume="/home/$USER/.cache/kicad:/home/$USER/.cache/kicad:rw" \
--volume="/etc/passwd:/etc/passwd:ro" \
--volume="/etc/shadow:/etc/shadow:ro" \
setsoft/kicad_auto:10.3-5.1.5 /bin/bash -c "cd workdir/$SUBDIR; kiplot"[/mw_shl_code]

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn