Browse Source

Update hwdata-check container image

Signed-off-by: Vitezslav Crhonek <vcrhonek@redhat.com>
Vitezslav Crhonek 2 years ago
parent
commit
cfe42de380
2 changed files with 3 additions and 3 deletions
  1. 2 2
      Dockerfile
  2. 1 1
      check-usb-ids.sh

+ 2 - 2
Dockerfile

@@ -1,3 +1,3 @@
-FROM fedora:22
+FROM fedora:35
 MAINTAINER Vitezslav Crhonek <vcrhonek@redhat.com>
-RUN dnf install -y usbutils python-hwdata && rm -rf /var/cache/yum
+RUN dnf -y update && dnf -y install usbutils && dnf -y install python3-hwdata --setopt='tsflags=' && dnf clean all

+ 1 - 1
check-usb-ids.sh

@@ -14,7 +14,7 @@ sudo podman run -t --privileged --rm=true \
     -v `pwd`/usb.ids:/usr/share/hwdata/usb.ids:ro \
     -v "$tmpdir:/mnt/out" \
     vcrhonek/hwdata-check \
-    /bin/bash -c 'lsusb 2>/mnt/out/err.out; python /usr/share/doc/python-hwdata/example.py 2>>/mnt/out/err.out' || :
+    /bin/bash -c 'lsusb 2>/mnt/out/err.out; python3 /usr/share/doc/python3-hwdata/example.py 2>>/mnt/out/err.out' || :
 if [[ `cat $tmpdir/err.out | wc -l` -gt 0 ]]; then
     echo "ERRORS:"
     nl $tmpdir/err.out