Skip to content

Commit

Permalink
Use our custom build of flashrom
Browse files Browse the repository at this point in the history
Signed-off-by: Nahum Shalman <[email protected]>
  • Loading branch information
nshalman committed Jan 8, 2024
1 parent 0746c15 commit 627d866
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
go build -o getinventory examples/inventory/inventory.go && \
install -m 755 -D getinventory /usr/sbin/


FROM almalinux:9-minimal as stage1
ARG TARGETOS TARGETARCH

Expand Down Expand Up @@ -73,9 +72,9 @@ RUN microdnf install -y --setopt=tsflags=nodocs --setopt=install_weak_deps=0 \
pciutils \
smartmontools \
tar \
udev \
unzip \
util-linux \
flashrom \
python \
python-devel \
python-pip \
Expand All @@ -86,6 +85,9 @@ RUN microdnf install -y --setopt=tsflags=nodocs --setopt=install_weak_deps=0 \

RUN pip install uefi_firmware==v1.11

# Install our custom flashrom package
ADD https://github.com/metal-toolbox/flashrom/releases/download/v1.3.99/flashrom-1.3.99-0.el9.x86_64.rpm /tmp
RUN rpm -ivh /tmp/flashrom*.rpm

# Delete /tmp/* as we don't need those included in the image.
RUN rm -rf /tmp/*
Expand Down

0 comments on commit 627d866

Please sign in to comment.