Skip to content

Commit

Permalink
[Fixed] KiCad 7 simple image generation
Browse files Browse the repository at this point in the history
- Switched to official KiCad 7 releases
  • Loading branch information
set-soft committed Aug 14, 2023
1 parent 94f8f89 commit 40d8f88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ki7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ LABEL org.opencontainers.image.description "KiCad 7 on Debian + tool dependencie
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
COPY kicad_3d_install.sh kicad_version.py /usr/bin/
RUN apt-get -y update && \
dl_deb.py -r KiCad_7.0.5.1 -s kicad-demos -- INTI-CMNB/kicad_debian && \
apt-get -y install --no-install-recommends /*.deb && \
# GPG key obtained using: https://unix.stackexchange.com/questions/679495/now-that-apt-key-is-deprecated-how-do-you-add-an-ubuntu-ppa-as-a-debian-apt-sou
COPY kicad-7.0-releases.gpg /usr/share/keyrings/
# Debian 12.1 and Ubuntu Lunar (23.04) are quite similar on 2023-08
RUN echo "deb [signed-by=/usr/share/keyrings/kicad-7.0-releases.gpg] https://ppa.launchpadcontent.net/kicad/kicad-7.0-releases/ubuntu lunar main" >> /etc/apt/sources.list && \
apt-get -y update && \
apt-get install -y --no-install-recommends kicad kicad-footprints kicad-symbols kicad-templates && \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/* /var/cache/debconf/templates.dat-old /var/lib/dpkg/status-old && \
rm -rf /usr/share/icons/Adwaita/ /*.deb
1 change: 1 addition & 0 deletions ki7/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
set -e
cp ../kicad-7.0-releases.gpg .
cp ../kicad_version.py .
docker build -f Dockerfile -t ghcr.io/inti-cmnb/kicad7_debian:latest .
TG1=`docker run --rm ghcr.io/inti-cmnb/kicad7_debian:latest kicad_version.py`
Expand Down

0 comments on commit 40d8f88

Please sign in to comment.