Skip to content

Instantly share code, notes, and snippets.

@mweiden
Created December 23, 2018 02:50
Show Gist options
  • Save mweiden/d1d9c2edec5a28b5781542a60db6f576 to your computer and use it in GitHub Desktop.
Save mweiden/d1d9c2edec5a28b5781542a60db6f576 to your computer and use it in GitHub Desktop.
Broken perf setup
FROM ubuntu:bionic
RUN apt-get update -y
RUN apt-get install -y bash git curl wget vim
RUN apt-get install -y build-essential
RUN apt-get install -y bison flex libelf-dev lsb-release
RUN apt-get install -y linux-headers-generic
# https://github.com/iovisor/bcc/blob/master/INSTALL.md#ubuntu---binary
ENV CONFIG_BPF=y
ENV CONFIG_BPF_SYSCALL=y
ENV CONFIG_NET_CLS_BPF=m
ENV CONFIG_NET_ACT_BPF=m
ENV CONFIG_BPF_JIT=y
ENV CONFIG_HAVE_BPF_JIT=y
ENV CONFIG_BPF_EVENTS=y
ENV CONFIG_NET_SCH_SFQ=m
ENV CONFIG_NET_ACT_POLICE=m
ENV CONFIG_NET_ACT_GACT=m
ENV CONFIG_DUMMY=m
ENV CONFIG_VXLAN=m
RUN echo "deb [trusted=yes] https://repo.iovisor.org/apt/xenial xenial-nightly main" | \
tee /etc/apt/sources.list.d/iovisor.list && \
apt-get update && \
apt-get install -y bcc-tools
ENV PATH=${PATH}:/usr/share/bcc/tools
CMD bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment