kolla/tests/setup_gate.sh
Jeff Peeler 2207f45d9d Disable ipv6 in gate
Saw the error below in gerrit logs:

"Failed to connect to 2610:28:3090:3001:5054:ff:feb9:6ae0: Network is
unreachable" when trying to access fedorapeople.org.

Change-Id: I96603948560bc7ea259235cf3b304b2e64ceb5ab
2015-07-13 13:56:35 -04:00

19 lines
571 B
Bash
Executable File

#!/bin/bash
set -e
sudo yum install -y libffi-devel openssl-devel docker
sudo /usr/sbin/usermod -a -G dockerroot ${SUDO_USER:-$USER}
sudo systemctl start docker
sleep 1
group_str="jenkins ALL=(:dockerroot) NOPASSWD: ALL"
sudo grep -x "$group_str" /etc/sudoers > /dev/null || sudo bash -c "echo \"$group_str\" >> /etc/sudoers"
sudo chown root:dockerroot /var/run/docker.sock
# disable ipv6 until we're sure routes to fedora mirrors work properly
sudo sh -c 'echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf'
sudo /usr/sbin/sysctl -p
echo "Completed $0."