Add multi arch support

This commit is contained in:
Cédric Laubacher
2020-05-05 21:58:23 +02:00
parent 22cc9ace4d
commit fa646b0176
4 changed files with 49 additions and 16 deletions

12
data/infra/ci/install-docker.sh 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