|
...
|
...
|
@@ -12,9 +12,17 @@ COPYENV=${COPYENV:-1}
|
|
12
|
12
|
# Param string to pass to stack.sh. Like "EC2_DMZ_HOST=192.168.1.1 MYSQL_USER=nova"
|
|
13
|
13
|
STACKSH_PARAMS=${STACKSH_PARAMS:-}
|
|
14
|
14
|
|
|
15
|
|
-# Install cgroup-bin if we don't have it yet
|
|
|
15
|
+# Install deps
|
|
|
16
|
+apt-get install lxc debootstrap
|
|
|
17
|
+
|
|
|
18
|
+# Install cgroup-bin from source, since the packaging is buggy and possibly incompatible with our setup
|
|
16
|
19
|
if ! which cgdelete | grep -q cgdelete; then
|
|
17
|
|
- apt-get install cgroup-bin
|
|
|
20
|
+ apt-get install g++ bison flex libpam0g-dev
|
|
|
21
|
+ wget http://sourceforge.net/projects/libcg/files/libcgroup/v0.37.1/libcgroup-0.37.1.tar.bz2/download -O /tmp/libcgroup-0.37.1.tar.bz2
|
|
|
22
|
+ cd /tmp && bunzip2 libcgroup-0.37.1.tar.bz2 && tar xfv libcgroup-0.37.1.tar
|
|
|
23
|
+ cd libcgroup-0.37.1
|
|
|
24
|
+ ./configure
|
|
|
25
|
+ make install
|
|
18
|
26
|
fi
|
|
19
|
27
|
|
|
20
|
28
|
# Create lxc configuration
|