taotieren 发表于 2023-2-14 11:03:50

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

本帖最后由 taotieren 于 2023-2-14 11:05 编辑

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

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

kicad_autoDocker image for KiCad automation scripts suitable for CI/CDThe 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


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"
页: [1]
查看完整版本: 适用于 CI/CD 的 KiCad 自动化脚本的 Docker 镜像