Add Dockerfile and run scripts for containerized crash cart adapter
Wraps the NOTECONS02 USB Crash Cart Adapter software (usb-crash-cart-adapter v20240517) in an Ubuntu 16.04 Docker container to resolve incompatibilities with modern Fedora. Includes X11/XWayland passthrough, USB device access, and host udev rules for the crash cart adapter (vendor 152a, products 8460/8463). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM ubuntu:16.04
|
||||
|
||||
# Install GTK2 and X11 runtime dependencies needed by the bundled wxWidgets 2.9
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libgtk2.0-0 \
|
||||
libsm6 \
|
||||
libxxf86vm1 \
|
||||
libxinerama1 \
|
||||
libxrandr2 \
|
||||
libxcursor1 \
|
||||
libxi6 \
|
||||
libxdamage1 \
|
||||
libxcomposite1 \
|
||||
libxext6 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy and install the crash cart software
|
||||
# Place the .deb in packages/crash-cart.deb before building
|
||||
COPY packages/crash-cart.deb /tmp/crash-cart.deb
|
||||
RUN dpkg -i /tmp/crash-cart.deb && rm /tmp/crash-cart.deb
|
||||
|
||||
# Prefer bundled libs (libpng12, libpython2.7, libwx*, etc.) over system ones
|
||||
ENV LD_LIBRARY_PATH=/opt/usb-crash-cart-adapter/20240517/guts
|
||||
|
||||
ENV DISPLAY=:0
|
||||
|
||||
ENTRYPOINT ["/opt/usb-crash-cart-adapter/20240517/wrapper"]
|
||||
Reference in New Issue
Block a user