blob: 27d692bc0aae126ec4f96189c1030b1f1f15eba4 [file] [log] [blame]
Brenden Blancof275d3d2015-07-06 23:41:23 -07001# File to be used for building an Ubuntu .deb
2
3FROM ubuntu:trusty
4
5MAINTAINER Brenden Blanco <bblanco@plumgrid.com>
6
7RUN apt-get -y install wget
8RUN printf "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty main\ndeb-src http://llvm.org/apt/trusty/ llvm-toolchain-trusty main\n" > /etc/apt/sources.list.d/llvm.list
9RUN wget -q -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add -
10RUN apt-get -y update
11
Brenden Blancobd8fea42015-08-25 23:14:25 -070012RUN apt-get -y install bison build-essential cmake debhelper devscripts flex git libedit-dev python zlib1g-dev
13RUN apt-get -y install libllvm3.8 llvm-3.8-dev libclang-3.8-dev
Brenden Blancof275d3d2015-07-06 23:41:23 -070014
15RUN mkdir -p /root/bcc/build
16COPY ./ /root/bcc/
Brenden Blancobd8fea42015-08-25 23:14:25 -070017WORKDIR /root
18RUN tar zcf bcc_0.1.1.orig.tar.gz bcc/
19WORKDIR /root/bcc
20RUN DEB_BUILD_OPTIONS="nocheck parallel=4" debuild -us -uc