Fixed issue related to docker image creation

by default cgroup-lite is not installed on
ubuntu-trusty node.

Change-Id: Ia8543d7887a854ecbfdc76c1a91a53bd02fb77d5
This commit is contained in:
hardik 2016-04-18 11:20:52 +05:30
parent d3ef00a122
commit c93405f6b1
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ RUN sudo pip install tox==1.6.1
RUN mkdir -p /opt/stack/mistral
ADD . /opt/stack/mistral
WORKDIR /opt/stack/mistral
RUN pip install -r requirements.txt
RUN pip install .
RUN mkdir /etc/mistral
RUN oslo-config-generator --config-file tools/config/config-generator.mistral.conf --output-file /etc/mistral/mistral.conf

View File

@ -1,7 +1,7 @@
#!/bin/bash -xe
if [ -x "/usr/bin/apt-get" ]; then
sudo -E apt-get update
sudo -E apt-get install -y docker.io apparmor aufs-tools
sudo -E apt-get install -y docker.io apparmor cgroup-lite
elif [ -x "/usr/bin/yum" ]; then
sudo -E yum install -y docker-io gpg
else