summaryrefslogtreecommitdiffstats
path: root/build/f_isoroot/f_qemupluginbuild/install_docker.sh
diff options
context:
space:
mode:
authorRuijing Guo <ruijing.guo@intel.com>2015-12-21 03:39:47 +0000
committerJonas Bjurel <jonas.bjurel@ericsson.com>2015-12-21 18:00:42 +0000
commita9d9c65192f89eb7682baae465993994c87d8a42 (patch)
treed938b34a45c5b539dd3b6f40c8399369461e2e64 /build/f_isoroot/f_qemupluginbuild/install_docker.sh
parent23e7333bb4e4ec228596d994bec18dc8d0670b2e (diff)
Move install_docker.sh to common place
1. copy install_docker.sh in qemu plugin to docker/ubuntu-builder 2. change docker build in ovs & qemu Change-Id: I3c0143e5e1b10a1cf798592d8bc05a49a5d12d48 Signed-off-by: Ruijing Guo <ruijing.guo@intel.com>
Diffstat (limited to 'build/f_isoroot/f_qemupluginbuild/install_docker.sh')
-rwxr-xr-xbuild/f_isoroot/f_qemupluginbuild/install_docker.sh27
1 files changed, 0 insertions, 27 deletions
diff --git a/build/f_isoroot/f_qemupluginbuild/install_docker.sh b/build/f_isoroot/f_qemupluginbuild/install_docker.sh
deleted file mode 100755
index eeb80e36a..000000000
--- a/build/f_isoroot/f_qemupluginbuild/install_docker.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-# From prepare-build-env.sh of Fuel
-# Check if docker is installed
-if hash docker 2>/dev/null; then
- echo "Docker binary found, checking if service is running..."
- ps cax | grep docker > /dev/null
- if [ $? -eq 0 ]; then
- echo "Docker is running."
- else
- echo "Process is not running, starting it..."
- sudo service docker start
- fi
-else
- # Install docker repository
- # Check that HTTPS transport is available to APT
- if [ ! -e /usr/lib/apt/methods/https ]; then
- sudo apt-get update
- sudo apt-get -y install -y apt-transport-https
- fi
- # Add the repository to APT sources
- echo deb http://mirror.yandex.ru/mirrors/docker/ docker main | sudo tee /etc/apt/sources.list.d/docker.list
- # Import the repository key
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
- # Install docker
- sudo apt-get update
- sudo apt-get -y install lxc-docker-1.7.1
-fi