Created
April 28, 2020 22:16
-
-
Save thebsdbox/bf278541dec38b61c92f2785ed0e8505 to your computer and use it in GitHub Desktop.
gross Dockerfile
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 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 😀