Added parallel docker image multi-arch building

This commit is contained in:
Alejandro Celaya 2020-05-17 10:02:36 +02:00
parent 1d26cd93fb
commit 91daec852f
3 changed files with 66 additions and 21 deletions
scripts/docker

12
scripts/docker/install-docker Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -ex
# install latest docker version
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
# enable multiarch execution
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes