Skip to content

Commit 565124b

Browse files
committed
ci: Add install dependency's to docker
1 parent 78a51ea commit 565124b

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/docker/Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,24 @@ RUN apt-get install -y \
1717
cppcheck shellcheck --no-install-recommends && \
1818
apt-get clean
1919

20-
#Install linuxcnc dependencys
20+
#Install linuxcnc build dependencys
2121
RUN --mount=type=bind,source=.,target=/linuxcnc-src,rw \
2222
cd linuxcnc-src && \
2323
.github/scripts/install-deps.sh && \
2424
apt-get clean
2525

26+
#Install linuxcnc install dependencys
27+
#Needs all debian packages, just build them
28+
#Install all and then remove the linuxcnc packages selectively
29+
#A bit hacky but does the job
30+
RUN --mount=type=bind,source=.,target=/linuxcnc-src,rw \
31+
cd linuxcnc-src && \
32+
.github/scripts/build-package-arch.sh && \
33+
apt-get -y install ../linuxcnc-uspace_*.deb ../linuxcnc-uspace-dev_*.deb ../linuxcnc-uspace-dbgsym_*.deb --no-install-recommends && \
34+
apt-get -y purge linuxcnc-uspace linuxcnc-uspace-dev linuxcnc-uspace-dbgsym && \
35+
rm -f ../linuxcnc*.* && \
36+
apt-get clean
37+
2638
#Add a user for linuxcnc with sudo nopasswd
2739
RUN useradd -ms /bin/bash linuxcnc && \
2840
echo "linuxcnc ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/linuxcnc-nopasswd

0 commit comments

Comments
 (0)