dockerfiles/bcc-tools/Dockerfile
Jess Frazelle 40314b6356
change to buster slim
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-09-14 10:09:44 -04:00

38 lines
955 B
Docker

# Usage:
# docker run --rm -it \
# --privileged \
# -v /lib/modules:/lib/modules:ro \
# -v /usr/src:/usr/src:ro \
# -v /etc/localtime:/etc/localtime:ro \
# r.j3ss.co/bcc-tools
#
FROM debian:buster-slim
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
dirmngr \
gnupg \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# add the iovisor repository
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D4284CDD
RUN echo "deb [trusted=yes] https://repo.iovisor.org/apt/xenial xenial-nightly main" > /etc/apt/sources.list.d/iovisor.list
RUN apt-get update && apt-get install -y \
binutils \
bcc-tools \
libbcc-examples \
python-bcc \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV PATH /usr/share/bcc/tools:$PATH
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]