From 010354b3e14bdf622e782e54bbba12c22736e5b0 Mon Sep 17 00:00:00 2001 From: Tom Barron Date: Fri, 10 Feb 2017 21:20:34 +0000 Subject: [PATCH] Enable devstack deploy of container driver on Fedora Change-Id: I31bf07ca46efb6858f78146c29372aad54347138 --- devstack/plugin.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index fc87acc399..c06cc39abc 100755 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -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