Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently multus-cni releases arm32 binary as release tar ball. This changes also introduce container image for easy deployment. Fix #639
- Loading branch information
Showing
4 changed files
with
116 additions
and
4 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 @@ | ||
# This Dockerfile is used to build the image available on DockerHub | ||
FROM golang:1.13.4 as build | ||
|
||
# Add everything | ||
ADD . /usr/src/multus-cni | ||
|
||
ENV GOARCH "arm" | ||
ENV GOOS "linux" | ||
|
||
RUN cd /usr/src/multus-cni && \ | ||
./hack/build-go.sh | ||
|
||
# build arm container | ||
FROM arm32v7/centos:7 | ||
LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/multus-cni | ||
COPY --from=build /usr/src/multus-cni /usr/src/multus-cni | ||
|
||
WORKDIR / | ||
ADD ./images/entrypoint.sh / | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |