Skip to content

Commit

Permalink
[KiCad 7][Full] Switching to backports
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Mar 6, 2024
1 parent c11a91c commit 12fc932
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions ki7_full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,11 @@ LABEL org.opencontainers.image.description "KiCad 7 on Debian + heavy tools"
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
COPY kicad_3d_install.sh kicad_version.py /usr/bin/
# 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 touch /etc/apt/sources.list && \
cp /etc/apt/sources.list /etc/apt/sources.list.ok && \
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 && \
echo "deb http://deb.debian.org/debian bookworm-backports main" >> /etc/apt/sources.list && \
apt-get -y update && \
apt-get install -y --no-install-recommends kicad && \
echo "Get libs from Mantic" && \
cp /etc/apt/sources.list.ok /etc/apt/sources.list && \
echo "deb [signed-by=/usr/share/keyrings/kicad-7.0-releases.gpg] https://ppa.launchpadcontent.net/kicad/kicad-7.0-releases/ubuntu mantic main" >> /etc/apt/sources.list && \
apt-get -y update && \
apt-get install -y --no-install-recommends kicad-footprints kicad-symbols kicad-templates && \
apt-get install -y -t bookworm-backports --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

0 comments on commit 12fc932

Please sign in to comment.