aboutsummaryrefslogtreecommitdiffstats
path: root/build/vagrant/setup_fuel.sh
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2016-06-21 22:30:09 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2016-06-21 22:40:59 -0700
commita309502b20dfc99828b8a3d17656369151d77157 (patch)
treea1306e8487dc2af659d80708052a3907bfe64cdc /build/vagrant/setup_fuel.sh
parent5514b02b38df42f7d954c63f4c74ecf8fbf368f8 (diff)
Add fuel@opnfv build based on vagrant
Change-Id: I5d180f060f27d49b03d6b2eda4750845a3490348 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'build/vagrant/setup_fuel.sh')
-rwxr-xr-xbuild/vagrant/setup_fuel.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/build/vagrant/setup_fuel.sh b/build/vagrant/setup_fuel.sh
new file mode 100755
index 000000000..b4d7651f9
--- /dev/null
+++ b/build/vagrant/setup_fuel.sh
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+sudo apt-get install -y git git-review make curl p7zip-full
+
+#install docker by https://docs.docker.com/engine/installation/linux/ubuntulinux/
+#sudo apt-get install linux-image-extra-$(uname -r)
+sudo apt-get install -y apt-transport-https ca-certificates
+sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
+
+cat << EOF | sudo tee /etc/apt/sources.list.d/docker.list
+deb https://apt.dockerproject.org/repo ubuntu-trusty main
+EOF
+sudo apt-get update
+sudo apt-get purge lxc-docker -y
+
+#workaroud for large disk
+sudo mkdir /var/lib/docker
+yes | sudo mkfs.ext4 /dev/sdb
+sudo mount /dev/sdb /var/lib/docker
+
+sudo apt-cache policy docker-engine
+sudo apt-get install -y docker-engine
+sudo service docker start
+sudo groupadd docker
+sudo usermod -aG docker vagrant
+cp -r /fuel /home/vagrant