Enable devstack deploy of container driver on Fedora

Change-Id: I31bf07ca46efb6858f78146c29372aad54347138
This commit is contained in:
Tom Barron 2017-02-10 21:20:34 +00:00
parent 65754aa153
commit 010354b3e1

View File

@ -702,9 +702,16 @@ function install_manila {
install_docker_ubuntu
echo "Importing docker image"
import_docker_service_image_ubuntu
elif is_fedora; then
echo "Installing docker...."
install_docker_fedora
echo "Importing docker image"
# TODO(tbarron): See if using a fedora container image
# is faster/smaller because of fewer extra dependencies.
import_docker_service_image_ubuntu
else
echo "Manila Devstack plugin does not support Container Driver on "\
" distros other than Ubuntu."
echo "Manila Devstack plugin does not support Container Driver on"\
" distros other than Ubuntu or Fedora."
exit 1
fi
fi
@ -814,6 +821,12 @@ function install_docker_ubuntu {
install_package docker.io
}
function install_docker_fedora {
sudo yum install -y docker
sudo systemctl enable docker
sudo systemctl start docker
}
function download_image {
local image_url=$1