Use Docker-CE for building images in the resil gate
Change-Id: I707b698608a2711e807c75410eaa3969bfa04683
This commit is contained in:
parent
3a9d3b4839
commit
3d685501db
@ -20,8 +20,9 @@ log_stage_header "Installing Packages"
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -q -y --no-install-recommends \
|
||||
apt-transport-https \
|
||||
ca-certificates \
|
||||
curl \
|
||||
docker.io \
|
||||
fio \
|
||||
genisoimage \
|
||||
jq \
|
||||
@ -29,8 +30,23 @@ sudo apt-get install -q -y --no-install-recommends \
|
||||
libvirt-bin \
|
||||
qemu-kvm \
|
||||
qemu-utils \
|
||||
software-properties-common \
|
||||
virtinst
|
||||
|
||||
# Install the docker gpg key & Add the repository
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
sudo add-apt-repository \
|
||||
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
||||
$(lsb_release -cs) \
|
||||
stable"
|
||||
sudo apt-get update -qq
|
||||
|
||||
# Remove old versions of docker, if installed
|
||||
sudo apt-get remove -q -y docker docker-engine docker.io
|
||||
# Install docker
|
||||
sudo apt-get install -q -y --no-install-recommends \
|
||||
docker-ce
|
||||
|
||||
log_stage_header "Joining User Groups"
|
||||
for grp in docker libvirtd libvirt; do
|
||||
if ! groups | grep $grp > /dev/null; then
|
||||
|
Loading…
Reference in New Issue
Block a user