Skip to content

Commit

Permalink
use PPA
Browse files Browse the repository at this point in the history
  • Loading branch information
Iristyle committed Dec 19, 2019
1 parent b4a2176 commit 8c95a34
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,22 @@ jobs:
language: ruby
rvm: 2.5.5
env:
- CONTAINERD_VERSION=1.2.10-3
- DOCKER_VERSION=19.03.5~3-0
- DOCKER_BUILD_FLAGS="--progress plain"
- DOCKER_COMPOSE_VERSION=1.25.0-rc2
before_install: |
set -ex
OS_ARCH=$(uname --machine)
PKG_ARCH=$(dpkg --print-architecture)
OS_RELEASE=$(lsb_release -cs)
# `uname --kernel-name`
sudo rm /usr/local/bin/docker-compose
curl --location https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-${OS_RELEASE}-${OS_ARCH} > docker-compose
curl --location https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname --kernel-name`-${OS_ARCH} > docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/local/bin
# sudo apt-get update && sudo apt-get install -y libseccomp2
# containerd.io
wget https://download.docker.com/linux/ubuntu/dists/${OS_RELEASE}/pool/stable/${PKG_ARCH}/containerd.io_${CONTAINERD_VERSION}_${PKG_ARCH}.deb
sudo apt install ./containerd.io_${CONTAINERD_VERSION}_${PKG_ARCH}.deb
# docker-ce-cli
wget https://download.docker.com/linux/ubuntu/dists/${OS_RELEASE}/pool/stable/${PKG_ARCH}/docker-ce-cli_${DOCKER_VERSION}~ubuntu-${OS_RELEASE}_${PKG_ARCH}.deb
sudo apt install ./docker-ce-cli_${DOCKER_VERSION}~ubuntu-${OS_RELEASE}_${PKG_ARCH}.deb
# docker-ce
wget https://download.docker.com/linux/ubuntu/dists/${OS_RELEASE}/pool/stable/${PKG_ARCH}/docker-ce_${DOCKER_VERSION}~ubuntu-${OS_RELEASE}_${PKG_ARCH}.deb
sudo apt install ./docker-ce_${DOCKER_VERSION}~ubuntu-${OS_RELEASE}_${PKG_ARCH}.deb
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=${PKG_ARCH}] https://download.docker.com/linux/ubuntu $OS_RELEASE stable"
sudo apt-get update
#sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
sudo apt-get -y install docker-ce
# {"registry-mirrors": ["https://mirror.gcr.io"]} causes failures for BuildKit
sudo cat /etc/docker/daemon.json
sudo rm -f /etc/docker/daemon.json
Expand Down

0 comments on commit 8c95a34

Please sign in to comment.