Brenden Blanco | f275d3d | 2015-07-06 23:41:23 -0700 | [diff] [blame] | 1 | # File to be used for building an Ubuntu .deb |
| 2 | |
| 3 | FROM ubuntu:trusty |
| 4 | |
| 5 | MAINTAINER Brenden Blanco <bblanco@plumgrid.com> |
| 6 | |
| 7 | RUN apt-get -y install wget |
| 8 | RUN 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 |
| 9 | RUN wget -q -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add - |
| 10 | RUN apt-get -y update |
| 11 | |
Brenden Blanco | bd8fea4 | 2015-08-25 23:14:25 -0700 | [diff] [blame] | 12 | RUN apt-get -y install bison build-essential cmake debhelper devscripts flex git libedit-dev python zlib1g-dev |
| 13 | RUN apt-get -y install libllvm3.8 llvm-3.8-dev libclang-3.8-dev |
Brenden Blanco | f275d3d | 2015-07-06 23:41:23 -0700 | [diff] [blame] | 14 | |
| 15 | RUN mkdir -p /root/bcc/build |
| 16 | COPY ./ /root/bcc/ |
Brenden Blanco | bd8fea4 | 2015-08-25 23:14:25 -0700 | [diff] [blame] | 17 | WORKDIR /root |
| 18 | RUN tar zcf bcc_0.1.1.orig.tar.gz bcc/ |
| 19 | WORKDIR /root/bcc |
| 20 | RUN DEB_BUILD_OPTIONS="nocheck parallel=4" debuild -us -uc |