Skip to content

Commit

Permalink
Added KiCad nightly image generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Sep 23, 2020
1 parent f53213a commit c6048f2
Show file tree
Hide file tree
Showing 8 changed files with 373 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM debian:10.4-slim
MAINTAINER Salvador E. Tropea <[email protected]>
MAINTAINER Salvador E. Tropea <[email protected]>
LABEL Description="Minimal KiCad image based on Debian"

RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list && \
Expand Down
16 changes: 16 additions & 0 deletions Dockerfile-nightly
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM debian:bullseye-slim
MAINTAINER Salvador E. Tropea <[email protected]>
LABEL Description="Minimal KiCad image based on Debian"

COPY *.list /
RUN apt-get -y update && \
apt-get -y install --no-install-recommends gnupg2 && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA854F61C4D0D9572BB95E5245D5502FAD7A805 && \
apt-get -y remove gnupg2 && \
mv /*.list /etc/apt/sources.list.d/ && \
apt-get -y update && \
apt-get -y install --no-install-recommends kicad-nightly kicad-nightly-symbols kicad-nightly-footprints && \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/* \
rm -rf /usr/share/icons/Adwaita/
COPY *-lib-table /usr/share/kicad-nightly/template/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The current tags are:
* **10.3-5.0.2** is Debian 10.3 + KiCad 5.0.2 (default stable)
* **10.3-5.1.5** is Debian 10.3 + KiCad 5.1.5 (backport)
* **10.4-5.1.6** (same as **latest**) is Debian 10.4 + KiCad 5.1.6 (backport)
* **bullseye-5.99-20200922** (same as **nightly**) is Debian bullseye (will be 11) + KiCad 5.99 (20200922). An unstable beta.

The installations are minimal, but contains schematic and footprint libraries.
The 3D models aren't included, they weight 10 times the size of these images.
Expand Down
6 changes: 6 additions & 0 deletions build-nightly.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
# KiCad nightly doesn't include the global symbol lib table:
#cp /usr/share/kicad/template/sym-lib-table .
#cp /usr/share/kicad/template/fp-lib-table .
docker build -f Dockerfile-nightly -t setsoft/kicad_debian:bullseye-5.99-20200922 .
docker build -f Dockerfile-nightly -t setsoft/kicad_debian:nightly .
133 changes: 133 additions & 0 deletions fp-lib-table

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions kicad-nightly.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
deb http://ppa.launchpad.net/kicad/kicad-dev-nightly/ubuntu groovy main
# deb-src http://ppa.launchpad.net/kicad/kicad-dev-nightly/ubuntu groovy main
201 changes: 201 additions & 0 deletions sym-lib-table

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions versions/5.99.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY \
--user $USER_ID:$GROUP_ID \
--env NO_AT_BRIDGE=1 \
--workdir="/home/$USER" \
--volume="/etc/group:/etc/group:ro" \
--volume="/home/$USER:/home/$USER:rw" \
--volume="/etc/passwd:/etc/passwd:ro" \
--volume="/etc/shadow:/etc/shadow:ro" \
--volume="/home/$USER:/home/$USER:rw" \
setsoft/kicad_debian:nightly kicad-nightly

0 comments on commit c6048f2

Please sign in to comment.