Created
August 28, 2015 15:09
-
-
Save tomgco/3fd4406e5c66dabce896 to your computer and use it in GitHub Desktop.
Boot2docker - linux perf tools inside boot2docker
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
FROM boot2docker/boot2docker | |
ENV TCZ_DEPS_2 elfutils-dev \ | |
elfutils | |
# Installing dependencies for compilation or linux perf tools | |
RUN apt-get update && apt-get install -y \ | |
bison \ | |
flex \ | |
elfutils \ | |
libelf-dev \ | |
libdw-dev \ | |
libaudit-dev \ | |
binutils-dev | |
# Install linux perf tools in $ROOTFS | |
RUN cd /linux-kernel && \ | |
make -C tools/lib/api && \ | |
make DESTDIR=$ROOTFS/usr -C tools/ perf_install | |
# Install the TCZ dependencies | |
RUN for dep in $TCZ_DEPS_2; do \ | |
echo "Download $TCL_REPO_BASE/tcz/$dep.tcz" &&\ | |
curl -L -o /tmp/$dep.tcz $TCL_REPO_BASE/tcz/$dep.tcz && \ | |
unsquashfs -f -d $ROOTFS /tmp/$dep.tcz && \ | |
rm -f /tmp/$dep.tcz ;\ | |
done | |
RUN curl http://people.redhat.com/sgrubb/audit/audit-2.4.4.tar.gz -LO && \ | |
tar xvf audit-2.4.4.tar.gz -C /tmp && \ | |
cd /tmp/audit-2.4.4/ && \ | |
./configure --enable-static=libaudit --prefix=$ROOTFS --exec-prefix=$ROOTFS --disable-zos-remote --disable-listener && \ | |
make && \ | |
make install | |
RUN /make_iso.sh | |
CMD ["cat", "boot2docker.iso"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment