Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: linuxhw/hw-probe
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.2
Choose a base ref
...
head repository: linuxhw/hw-probe
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
45 changes: 45 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
FROM alpine:3.16

RUN apk update \
&& apk add --no-cache perl curl xz dmidecode pciutils usbutils \
smartmontools hdparm sysstat util-linux lm_sensors acpi iw wireless-tools glib libxrandr zlib eudev-libs libusb libdrm \
alsa-utils xrandr xdpyinfo xinput acpica iasl perl-libwww i2c-tools hwinfo libx86emu \
&& apk add --no-cache --virtual build-deps git gcc g++ make autoconf automake libtool file bsd-compat-headers libc-dev util-linux-dev flex linux-headers glib-dev libxrandr-dev zlib-dev eudev-dev libusb-dev libdrm-dev i2c-tools-dev kmod-dev \
&& git clone https://git.linuxtv.org/edid-decode.git 2>/dev/null \
&& cd edid-decode \
&& make \
&& find . -type f | perl -lne 'print if -B and -x' | xargs strip \
&& make install \
&& cd .. \
&& rm -fr edid-decode \
&& git clone https://github.com/rockowitz/ddcutil.git \
&& cd ddcutil \
&& git checkout 1.2.2-release \
&& NOCONFIGURE=1 NO_CONFIGURE=1 sh autogen.sh \
&& ./configure --prefix=/usr \
&& make \
&& find . -type f | perl -lne 'print if -B and -x' | xargs strip \
&& make install \
&& cd .. \
&& rm -fr ddcutil \
&& curl -L https://github.com/linuxhw/build-stuff/releases/download/1.6/hw-probe-1.6-AI.tar.gz > hw-probe-1.6-AI.tar.gz \
&& tar -xf hw-probe-1.6-AI.tar.gz \
&& rm -fr hw-probe-1.6-AI.tar.gz \
&& cd hw-probe-1.6-AI \
&& make install \
&& cd .. \
&& rm -fr hw-probe-1.6-AI \
&& apk del build-deps \
&& rm -fr /usr/bin/acpibin /usr/bin/acpiexamples /usr/bin/acpiexec /usr/bin/acpihelp /usr/bin/acpinames /usr/bin/acpisrc /usr/bin/lsusb.py /usr/bin/usbhid-dump \
&& rm -fr /usr/sbin/convert_hd /usr/sbin/check_hd /usr/sbin/mk_isdnhwdb /usr/sbin/getsysinfo /usr/sbin/fancontrol /usr/sbin/pwmconfig /usr/sbin/isadump /usr/sbin/isaset /usr/sbin/ownership /usr/sbin/setpci /usr/sbin/vpddecode /usr/sbin/update-smart-drivedb /usr/sbin/smartd \
&& rm -fr /usr/share/man /usr/share/doc /usr/share/pkgconfig /usr/share/cmake /usr/share/ddcutil \
&& rm -fr /usr/include \
&& rm -fr /usr/lib/pkgconfig /usr/lib/systemd /usr/lib/libddc* \
&& rm -fr /usr/share/perl5/vendor_perl/libwww/*.pod \
&& rm -fr /usr/bin/lwp-* \
&& rm -fr /var/cache/apk/*

ENV LD_LIBRARY_PATH /usr/lib64:/usr/lib
ENV DISPLAY :0

ENTRYPOINT ["/usr/bin/hw-probe", "-docker"]
Loading