File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2121RUN --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
2739RUN useradd -ms /bin/bash linuxcnc && \
2840 echo "linuxcnc ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/linuxcnc-nopasswd
You can’t perform that action at this time.
0 commit comments