Caching a single file on Travis CI

Inside my build on travis I need to first download a large .tar.gz file.

This .tar.gz never changes so it’s a good idea cache it.

  • Jupyter notebook on Docker not working behind proxy
  • Best practice for connecting to a vpn though docker [closed]
  • Tomcat 7 fails when starts in Debian, but continue working in background
  • running simple web app on docker tomcat container
  • how to set up a fast and light development environment using docker?
  • Node.js process, running in Docker container hangs without exiting or throwing when out of memory
  • The .tar.gz it’s downloaded inside my Dockerfile:

    RUN curl ftp://mycompanyftp.com/foo/bar/mylargefile.tar.gz -o /tmp/mylarge.tar.gz

    With that the docker container build with the file inside.

    How can I cache this file?

    PS: It’s also possible to download the file on before_install and use docker ADD to put it inside the Docker container.

  • docker-machine with amazon ami HVM doesn't work
  • Replacing a particular instance on AWS Elastic BeanStalk?
  • Not able to communicate with server on https when launched from marathon and docker
  • Setup PhpStorm and Docker for PHP development without PHP on the host
  • logstash kafka input filter with high cpu usage
  • Downloading images from custom registry with go-dockerclient hangs
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.