From d11f75b5050944e373125008be1c9683797c72a9 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 4 Nov 2013 16:11:33 -0700 Subject: [PATCH] Add libdevmapper static compilation to Dockerfile for device-mapper --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index 43d7e61eb6274..f20fc7a3dc93f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,6 +57,15 @@ run apt-get install -y -q iptables run apt-get install -y -q lxc run apt-get install -y -q aufs-tools +# Get lvm2 source for compiling statically +run git clone git://git.fedorahosted.org/git/lvm2.git /usr/local/lvm2 && cd /usr/local/lvm2 && git checkout v2_02_103 +# see https://git.fedorahosted.org/cgit/lvm2.git/refs/tags for release tags +# note: we can't use "git clone -b" above because it requires at least git 1.7.10 to be able to use that on a tag instead of a branch and we only have 1.7.9.5 + +# Compile and install lvm2 +run cd /usr/local/lvm2 && ./configure --enable-static_link && make device-mapper && make install_device-mapper +# see https://git.fedorahosted.org/cgit/lvm2.git/tree/INSTALL + volume /var/lib/docker workdir /go/src/github.com/dotcloud/docker