Created
October 2, 2018 18:35
-
-
Save edwarnicke/7d7109957762b257f6e503c659ebcfee to your computer and use it in GitHub Desktop.
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
FROM ubuntu:bionic as vppcontainer | |
ARG DEBIAN_FRONTEND=noninteractive | |
ARG REPO=release | |
RUN apt-get update | |
RUN apt-get -y install curl | |
RUN curl -s https://packagecloud.io/install/repositories/fdio/${REPO}/script.deb.sh | bash | |
RUN apt-get update | |
RUN apt-get -y install vpp vpp-plugins | |
RUN apt-get -y purge curl | |
RUN apt-get -y clean | |
CMD ["/usr/bin/vpp","-c","/etc/vpp/startup.conf"] | |
FROM vppcontainer as govppbuilder | |
ARG DEBIAN_FRONTEND=noninteractive | |
RUN apt-get -y install vpp-dev golang git | |
RUN go get git.fd.io/govpp.git | |
# COPY . ${proper place in gopath for your source} | |
# WORDIR ${proper place in gopath for your source} | |
# GO build ./... | |
FROM vppcontainer | |
# COPY --from=govppbuilder ${your go binary} ${where your go binary goes} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment