Skip to content

Instantly share code, notes, and snippets.

@thebsdbox
Created April 28, 2020 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thebsdbox/bf278541dec38b61c92f2785ed0e8505 to your computer and use it in GitHub Desktop.
Save thebsdbox/bf278541dec38b61c92f2785ed0e8505 to your computer and use it in GitHub Desktop.
gross Dockerfile
FROM golang:1.14.2-buster
ENV DEBIAN_FRONTEND=noninteractive
RUN echo deb http://ftp.us.debian.org/debian sid main >> /etc/apt/sources.list
RUN apt-get update; apt-get install -y libtool \
cmake \
automake \
autoconf \
make \
ninja-build \
curl \
unzip \
virtualenv \
build-essential \
openjdk-8-jdk
RUN apt-get install -y libprotobuf-java
RUN go get -u github.com/bazelbuild/buildtools/buildifier
RUN go get -u github.com/bazelbuild/buildtools/buildozer
RUN git clone https://github.com/bazelbuild/bazel.git
RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
&& curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
RUN apt-get update \
&& apt-get install -y bazel-3.0.0 \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/envoyproxy/envoy.git
RUN git clone https://github.com/stevesloka/envoy-custom-extensions.git
WORKDIR envoy
RUN bazel-3.0.0 build --sandbox_debug -c opt //source/exe:envoy-static
@thebsdbox
Copy link
Author

I wrote this whilst juggling several plates ... don't @ me.

If anyone wants to take this an do the obvious optimisations then go for it 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment