-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from cyclinder/support_multi_arch
support build image for arm64 and ppc64le
- Loading branch information
Showing
6 changed files
with
264 additions
and
15 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
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 | ||
|
||
COPY . /usr/src/sriov-cni | ||
|
||
ENV HTTP_PROXY $http_proxy | ||
ENV HTTPS_PROXY $https_proxy | ||
|
||
WORKDIR /usr/src/sriov-cni | ||
RUN apk add --no-cache --virtual build-dependencies build-base=~0.5 && \ | ||
make clean && \ | ||
make build | ||
|
||
FROM arm64v8/alpine | ||
COPY --from=builder /usr/src/sriov-cni/build/sriov /usr/bin/ | ||
WORKDIR / | ||
|
||
LABEL io.k8s.display-name="SR-IOV CNI" | ||
|
||
COPY ./images/entrypoint.sh / | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
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 ppc64le/golang:alpine as builder | ||
|
||
COPY . /usr/src/sriov-cni | ||
|
||
ENV HTTP_PROXY $http_proxy | ||
ENV HTTPS_PROXY $https_proxy | ||
|
||
WORKDIR /usr/src/sriov-cni | ||
RUN apk add --no-cache --virtual build-dependencies build-base=~0.5 && \ | ||
make clean && \ | ||
make build | ||
|
||
FROM ppc64le/alpine | ||
COPY --from=builder /usr/src/sriov-cni/build/sriov /usr/bin/ | ||
WORKDIR / | ||
|
||
LABEL io.k8s.display-name="SR-IOV CNI" | ||
|
||
COPY ./images/entrypoint.sh / | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
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