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.

  • Dockerfile doesn't run the CMD if the ENTRYPOINT isn't finished
  • Dockerizing Delayed Job
  • How to import a database into a Docker container using docker-compose
  • Adding tags to docker image from jenkins
  • How to connect to a service running on docker container from withing host MacOS machine?
  • why different output from zabbix_get and zabbix_agentd command?
  • 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.

  • How to access scripts in different Docker containers from a single place?
  • Why doesn't Linux seek the command in all the directories in PATH environment?
  • How to run docker-compose on remote host?
  • AWS EB should create new instance once my docker reached its maximum memory limit
  • Running a Docker image in PyCharm causes “Invalid volume specification”
  • Make Docker4Mac and vagrant see each others network
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.