kolla/tools/setup_RedHat.sh
Mark Goddard 6c86915597 CI: Move to CentOS 8 nodepool images
This change modifies the CentOS build CI jobs to use a CentOS 8 host
image.

NOTE: This does not affect the version of CentOS used as the base image
in containers built by kolla.

Partially-Implements: blueprint centos-rhel-8
Partially-Implements: blueprint centos-rhel-python3

Change-Id: Ie25b54a4e6116ed2bcb9c3b5c44eb6edbd2e6b49
2019-11-26 10:22:06 +00:00

21 lines
365 B
Bash
Executable File

#!/bin/bash
set -o xtrace
set -o errexit
sudo tee /etc/yum.repos.d/docker-ce-stable.repo << EOF
[docker-ce-stable]
baseurl=$DOCKER_REPOS_MIRROR_URL/centos/7/\$basearch/stable
enabled=1
gpgcheck=1
gpgkey=$DOCKER_REPOS_MIRROR_URL/centos/gpg
module_hotfixes=True
EOF
sudo dnf -y install docker-ce
sudo systemctl start docker
sudo docker info
echo "Completed $0."