aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-09-02 09:28:25 +0000
committerGerrit Code Review <review@openstack.org>2015-09-02 09:28:25 +0000
commit93b8d5b026c6d772258f3d8da9c20e27140053f9 (patch)
treea7fbd4d99b7338865edbbcbb5380992d422a316e
parent0e8f20aa9dd1b923c32f0a5e21a159ad4dfb3417 (diff)
parent870a89708b6d64a45b3dee6f54ed215bad9a1d98 (diff)
downloadkolla-93b8d5b026c6d772258f3d8da9c20e27140053f9.tar.gz
kolla-93b8d5b026c6d772258f3d8da9c20e27140053f9.zip
Merge "Setup ubuntu build gate"
-rwxr-xr-xtests/setup_ubuntu.sh20
1 files changed, 17 insertions, 3 deletions
diff --git a/tests/setup_ubuntu.sh b/tests/setup_ubuntu.sh
index 1e82cfec1..407c5c541 100755
--- a/tests/setup_ubuntu.sh
+++ b/tests/setup_ubuntu.sh
@@ -3,13 +3,27 @@
set -o xtrace
set -o errexit
+sudo mount
+
# Setup Docker repo and add signing key
echo 'deb http://apt.dockerproject.org/repo ubuntu-trusty main' | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-get update
-sudo apt-get install -y --no-install-recommends docker-engine btrfs-progs
+sudo apt-get install -y --no-install-recommends docker-engine btrfs-tools
+
+# The reason for using BTRFS is stability. There are numerous issues with the
+# devicemapper backed on Ubuntu and AUFS is slow. BTRFS is very solid as a
+# backend in my experince. I use ie almost exclusively.
+# Format Disks and setup Docker to use BTRFS
+sudo umount /dev/${DEV} || true
+sudo parted /dev/${DEV} -s -- mklabel msdos
+sudo service docker stop
+echo 'DOCKER_OPTS="-s btrfs"' | sudo tee /etc/default/docker
+sudo rm -rf /var/lib/docker/*
+sudo mkfs.btrfs -f /dev/${DEV}
+sudo mount /dev/${DEV} /var/lib/docker
+sudo service docker start
-# We break the gate initially since it will not function until i can test against the ubuntu gate
-exit 1
+sudo docker info
echo "Completed $0."