Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Travis builds failing to install docker-engine version 1.9.1-0~trusty #253

Open
jmurty opened this issue Jun 22, 2017 · 1 comment
Open

Comments

@jmurty
Copy link
Contributor

jmurty commented Jun 22, 2017

All Travis CI test builds currently fail with the error message E: Version '1.9.1-0~trusty' for 'docker-engine' was not found

We use the old version of docker-engine because it caches intermediate build artefacts, massively speeding up the build process, whereas newer versions of Docker to not do so (at least, not without the new/pending ``--cache-from` directive)

Travis customisation: https://github.com/ic-labs/django-icekit/blob/b3e7965/.travis.yml#L8

Example Travis build failure: https://travis-ci.org/ic-labs/django-icekit/builds/245583198

jmurty added a commit that referenced this issue Jun 22, 2017
- remove customisation to install docker-engine
  version 1.9.1 in place of the Docker provided
  automatically by Travis
- add `--cache-from` directive to docker build
  stage to take advantage of image caching.
@jmurty jmurty self-assigned this Jun 22, 2017
@jmurty
Copy link
Contributor Author

jmurty commented Jun 22, 2017

Related to #241

jmurty added a commit that referenced this issue Jun 22, 2017
The `--pull` directive on `build` is unnecessary
immediately after an explicit `docker pull`.

This change isn't a big deal, but will trigger a
Travis re-build as a nice side-effect.
jmurty added a commit that referenced this issue Jun 22, 2017
…ocker-engine-1.9

#253 travis failures installing docker engine 1.9
jmurty added a commit that referenced this issue Jun 22, 2017
Per [1] Travis will do some autoamtic setup steps
based on the kind of build, which for `python` builds
seems to involve automatically installing our
_requirements.txt_ file prior to running the Docker
build process we actually want.

See for example the `pip install -r requirements.txt`
command executed in this build [2] that takes almost
100 seconds.

This change overrides Travis's `install` step with
a no-op directive.

[1]: https://docs.travis-ci.com/user/customizing-the-build#Customizing-the-Installation-Step
[2]: https://travis-ci.org/ic-labs/django-icekit/builds/245610276
@jmurty jmurty removed their assignment Oct 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant