Skip to content

Instantly share code, notes, and snippets.

@thetechnick
Created September 11, 2021 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thetechnick/01acab9a02c87432c4fe18027bcb3bde to your computer and use it in GitHub Desktop.
Save thetechnick/01acab9a02c87432c4fe18027bcb3bde to your computer and use it in GitHub Desktop.
Linux CNC Fedora 34 Containerfile
FROM fedora:34
RUN dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-34.noarch.rpm \
https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-34-1.noarch.rpm
RUN dnf install git make autoconf gcc gcc-c++ libtirpc kmod python python3-gobject \
libudev-devel libmodbus-devel readline-devel freeglut-devel libXmu-devel \
libusb-devel glib2-devel gtk2-devel pygtk2 procps psmisc intltool tcl-devel tk-devel bwidget tkimg tclx \
gtk3-devel \
boost-python3-devel libwebsockets-devel python-devel -y
RUN dnf install libtirpc-devel boost-python3-devel -y && \
pip install Yapps2==2.2.0
RUN cd /root && \
git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc --depth=1 && \
cd linuxcnc/src && \
./autogen.sh && \
export CPPFLAGS="$(pkg-config --cflags python3)" && \
./configure --with-realtime=uspace \
--with-python=python3 \
--enable-non-distributable=yes && \
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment