Skip to content

Instantly share code, notes, and snippets.

@edwarnicke
Created October 2, 2018 18:35
Show Gist options
  • Save edwarnicke/7d7109957762b257f6e503c659ebcfee to your computer and use it in GitHub Desktop.
Save edwarnicke/7d7109957762b257f6e503c659ebcfee to your computer and use it in GitHub Desktop.
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