Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
93b8d5b0
Commit
93b8d5b0
authored
9 years ago
by
Jenkins
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Setup ubuntu build gate"
parents
0e8f20aa
870a8970
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/setup_ubuntu.sh
+17
-3
17 additions, 3 deletions
tests/setup_ubuntu.sh
with
17 additions
and
3 deletions
tests/setup_ubuntu.sh
+
17
−
3
View file @
93b8d5b0
...
...
@@ -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
."
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment