FROM ghcr.io/inti-cmnb/kicad_auto:ki5 MAINTAINER Salvador E. Tropea LABEL Description="KiCad 5 with KiBot and other automation scripts" RUN dpkg --remove kicost kibot && \ apt-get update && \ apt-get -y install --no-install-recommends -t bullseye-backports curl && \ apt-get -y install --no-install-recommends unzip python3-pip && \ curl https://codeload.github.com/INTI-CMNB/KiBot/zip/refs/heads/dev --output pp.zip && \ unzip pp.zip && \ pip3 install --no-compile KiBot-dev/ && \ rm -rf KiBot-dev pp.zip && \ curl https://codeload.github.com/hildogjr/KiCost/zip/refs/heads/master --output pp.zip && \ unzip pp.zip && \ pip3 install KiCost-master/ && \ apt-get -y remove curl unzip python3-pip && \ rm -rf KiCost-master pp.zip && \ rm -rf /var/lib/apt/lists/* # kidiff depends on KiAuto # dpkg --remove kiauto && \ # curl https://codeload.github.com/INTI-CMNB/KiAuto/zip/refs/heads/master --output pp.zip && \ # unzip pp.zip && \ # pip3 install KiAuto-master/ && \ # rm -rf KiAuto-master/ pp.zip && \ ARG repo_hash ENV KIBOT_REPO_HASH=$repo_hash RUN kibot --version | sed 's/.* \([0-9]\+\.[0-9]\+\.[0-9]\+\) .*/\1/' | tr -d '\n' > /etc/kiauto_tag && \ echo -n -${KIBOT_REPO_HASH}_k >> /etc/kiauto_tag && \ kicad_version.py >> /etc/kiauto_tag && \ echo -n _d >> /etc/kiauto_tag && \ cat /etc/debian_version | tr -d '\n' >> /etc/kiauto_tag