forked from k8snetworkplumbingwg/sriov-network-device-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add arm64 build instructions and daemon set (k8snetworkplumbingwg#227)
Signed-off-by: Alexey Perevalov <[email protected]>
- Loading branch information
1 parent
ea14ce0
commit 037226b
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM arm64v8/golang:alpine as builder | ||
|
||
ADD . /usr/src/sriov-network-device-plugin | ||
|
||
ENV HTTP_PROXY $http_proxy | ||
ENV HTTPS_PROXY $https_proxy | ||
RUN apk add --update --virtual build-dependencies build-base linux-headers make && \ | ||
cd /usr/src/sriov-network-device-plugin && \ | ||
make clean && \ | ||
make build | ||
|
||
FROM arm64v8/alpine | ||
RUN apk add hwdata-pci | ||
COPY --from=builder /usr/src/sriov-network-device-plugin/build/sriovdp /usr/bin/ | ||
WORKDIR / | ||
|
||
LABEL io.k8s.display-name="SRIOV Network Device Plugin PPC64LE" | ||
|
||
ADD ./images/entrypoint.sh / | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |