forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubuntu
20 lines (15 loc) · 771 Bytes
/
Dockerfile.ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File to be used for building an Ubuntu .deb
FROM ubuntu:trusty
MAINTAINER Brenden Blanco <[email protected]>
RUN apt-get -y install wget
RUN printf "deb https://llvm.org/apt/trusty/ llvm-toolchain-trusty main\ndeb-src https://llvm.org/apt/trusty/ llvm-toolchain-trusty main\n" > /etc/apt/sources.list.d/llvm.list
RUN wget -q -O - https://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add -
RUN apt-get -y update
RUN apt-get -y install bison build-essential cmake debhelper devscripts flex git libedit-dev python zlib1g-dev
RUN apt-get -y install libllvm3.8 llvm-3.8-dev libclang-3.8-dev
RUN mkdir -p /root/bcc/build
COPY ./ /root/bcc/
WORKDIR /root
RUN tar zcf bcc_0.1.1.orig.tar.gz bcc/
WORKDIR /root/bcc
RUN DEB_BUILD_OPTIONS="nocheck parallel=4" debuild -us -uc