Skip to content

Commit

Permalink
Install kmod package in images
Browse files Browse the repository at this point in the history
The latest Alpine and UBI-miminal don't contain kmod installed so
Network Operator failes to run init container.
  • Loading branch information
e0ne committed Oct 6, 2021
1 parent cc1e555 commit e08adce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apk add --update --virtual build-dependencies build-base linux-headers git &
make build

FROM ${BASE_IMAGE}
RUN apk add hwdata-pci
RUN apk add kmod hwdata-pci
COPY --from=builder /usr/src/k8s-rdma-shared-dp/build/k8s-rdma-shared-dp /bin/

LABEL io.k8s.display-name="RDMA Shared Device Plugin"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ubi
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apk add --update --virtual build-dependencies build-base linux-headers git &
make build

FROM ${BASE_IMAGE}
RUN microdnf install hwdata
RUN microdnf install kmod hwdata
COPY --from=builder /usr/src/k8s-rdma-shared-dp/build/k8s-rdma-shared-dp /bin/

LABEL io.k8s.display-name="RDMA Shared Device Plugin"
Expand Down

0 comments on commit e08adce

Please sign in to comment.