KiBot/tools/dev_image_k6/Dockerfile

34 lines
1.4 KiB
Docker

FROM ghcr.io/inti-cmnb/kicad_auto:ki6
MAINTAINER Salvador E. Tropea <stropea@inti.gob.ar>
LABEL Description="KiCad 6 with KiBot and other automation scripts"
RUN dpkg --remove kicost kibot && \
apt-get update && \
apt-get -y install --no-install-recommends curl unzip python3-pip && \
curl https://codeload.github.com/INTI-CMNB/KiBot/zip/refs/heads/dev --output pp.zip && \
unzip pp.zip && \
pip3 install --break-system-packages --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 --break-system-packages 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 --break-system-packages 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