Closed Vanuan closed 6 years ago
Until we roll out a build environment update, on Trusty, you can use sudo
to update Docker.
Yeap, it worked: https://github.com/Vanuan/jspm-cli/blob/docker/.travis.yml
Would be great to have a shorter syntax like this:
docker:
engine-version: 1.11.1
compose-version: 1.7.0
composefile:
global:
- docker-compose.yml
matrix:
- compose/node-4.yml
- compose/node-6.yml
So that by default it's executed like this:
docker-compose -f docker-compose.yml -f compose/node-4.yml build
docker-compose -f docker-compose.yml -f compose/node-4.yml up
and this
docker-compose -f docker-compose.yml -f compose/node-6.yml build
docker-compose -f docker-compose.yml -f compose/node-6.yml up
As of today it looks like Travis-CI is now using Docker 1.12 - see https://travis-ci.org/zopanix/docker_factorio_server#L246
Nowadays I need to do this (to get docker 17.10)
before_install:
- sudo apt-get update
- sudo apt-get install docker-ce
I think this ticket can be closed, maybe a note can be added to the docs for those edge-cases.
In case it helps anyone here - the current trusty images (group: stable
) already come with docker-ce 17.03.1-ce, and travis-ci/travis-cookbooks#928 has just updated master to 17.09.0-ce (usable via group: edge
for sudo: required
jobs - if you're fine with increased chance of periodic breakage in exchange for saving the time spent manually installing the newer version).
usable via group: edge for sudo: required jobs
Correction: it appears that whilst group: edge
is more up to date than group: stable
, it's not as new as master, since it's instead using docker 17.06.1-ce.
I've opened travis-ci/docs-travis-ci-com#1539 for documenting what each of the groups maps to.
Looks like I can't use travis installed version of docker: