3 # vim: sw=4 ts=4 sts=4 et :
5 # force any errors to cause the script and job to end in failure
10 # install docker and enable it
11 echo "---> Installing docker"
12 yum install -y docker supervisor bridge-utils
13 systemctl enable docker
15 # configure docker networking so that it does not conflict with LF
17 cat <<EOL > /etc/sysconfig/docker-network
18 # /etc/sysconfig/docker-network
19 DOCKER_NETWORK_OPTIONS='--bip=10.250.0.254/24'
21 # configure docker daemon to listen on port 5555 enabling remote
23 sed -i -e "s#='--selinux-enabled'#='--selinux-enabled -H unix:///var/run/docker.sock -H tcp://0.0.0.0:5555'#g" /etc/sysconfig/docker
25 # docker group doesn't get created by default for some reason
28 # Install python dependencies
29 yum install -y python-{devel,virtualenv,setuptools,pip}
33 echo "---> Ubuntu changes"
36 OS=$(/usr/bin/facter operatingsystem | tr '[:upper:]' '[:lower:]')
45 echo "${OS} has no configuration changes"
49 echo "***************************************************"
50 echo "* PLEASE RELOAD THIS VAGRANT BOX BEFORE USE *"
51 echo "***************************************************"