Skip to content

Commit

Permalink
(maint) Use Docker 19.03 in Travis again
Browse files Browse the repository at this point in the history
 - Instead of incurring the upgrade cost to Travis 20.10, use the
   existing 19.03 version.

   In practice, upgrading Docker in Travis turned out to be unreliable.

   To enable buildx requires installing the plugin from the github
   releases page. Using the experimental cli flag was supposed to enable
   the plugin for 19.03, but didn't seem to work in the Travis env.

 - Also adds missing generation of named buildx builder to 6.x branch
  • Loading branch information
Iristyle authored and Ciprian Badescu committed Apr 27, 2021
1 parent 92526ae commit de98247
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,23 @@ matrix:
rvm: 2.6.6
env:
- DOCKER_COMPOSE_VERSION=1.28.6
- DOCKER_BUILDX_VERSION=0.5.1
# necessary to prevent overwhelming TravisCI build output limits
- DOCKER_BUILD_FLAGS="--progress plain"
before_install:
- 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
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce docker-ce-cli containerd.io
- sudo rm /usr/local/bin/docker-compose
- curl --location https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname --kernel-name`-`uname --machine` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- mkdir -vp ~/.docker/cli-plugins
- curl --location https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-amd64 > ~/.docker/cli-plugins/docker-buildx
- chmod +x ~/.docker/cli-plugins/docker-buildx
- docker buildx create --name travis_builder --use
script:
- set -e
- cd docker
- make lint
- make build
- make test
after_script:
- docker buildx rm travis_builder

0 comments on commit de98247

Please sign in to comment.