forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for debian and ubuntu docker build
* Fixed build for debian and ubuntu * Bumped debian and ubuntu versions (fix some build-dependency issues) * Make debian and ubuntu Dockerfiles use the same build script * Build-dependencies now installing automatically via pbuilder
- Loading branch information
Showing
3 changed files
with
20 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
FROM debian:jessie | ||
FROM debian:stretch | ||
|
||
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv 15CF4D18AF4F7421 && \ | ||
echo "deb http://llvm.org/apt/jessie/ llvm-toolchain-jessie-3.8 main" > /etc/apt/sources.list.d/llvm.list && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends sudo build-essential fakeroot bison cmake debhelper devscripts flex git libedit-dev python zlib1g-dev libllvm3.8 llvm-3.8-dev libclang-3.8-dev libelf-dev luajit libluajit-5.1-dev && \ | ||
mkdir -p /usr/share/llvm-3.8 && \ | ||
ln -s /usr/lib/llvm-3.8/share/llvm/cmake /usr/share/llvm-3.8/cmake | ||
MAINTAINER Brenden Blanco <[email protected]> | ||
|
||
RUN DEBIAN_RELEASE=stretch && \ | ||
# Adding non-free repo for netperf | ||
echo "deb http://deb.debian.org/debian ${DEBIAN_RELEASE} non-free" > \ | ||
/etc/apt/sources.list.d/debian-non-free.list && \ | ||
apt-get -qq update && \ | ||
apt-get -y install pbuilder aptitude | ||
|
||
COPY ./ /root/bcc | ||
|
||
WORKDIR /root/bcc | ||
|
||
RUN ./scripts/build-deb.sh | ||
RUN /usr/lib/pbuilder/pbuilder-satisfydepends && \ | ||
./scripts/build-deb.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,13 @@ | ||
# File to be used for building an Ubuntu .deb | ||
FROM ubuntu:xenial | ||
|
||
FROM ubuntu:trusty | ||
MAINTAINER Brenden Blanco <[email protected]> | ||
|
||
MAINTAINER Brenden Blanco <[email protected]> | ||
RUN apt-get -qq update && \ | ||
apt-get -y install pbuilder aptitude | ||
|
||
RUN apt-get -y install wget | ||
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 | ||
RUN wget -q -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add - | ||
RUN apt-get -y update | ||
COPY ./ /root/bcc | ||
|
||
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 | ||
|
||
RUN /usr/lib/pbuilder/pbuilder-satisfydepends && \ | ||
./scripts/build-deb.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters