Giter VIP home page Giter VIP logo

Comments (5)

noonien avatar noonien commented on July 2, 2024

Because I saw no need to create several storage layers and was not interested in using the build cache. I would rather get the latest stable releases for the the needed packages.

Also, from what I can tell, the cache would not be used because there's only one Dockerfile, it does not have sibling Dockerfiles for which to cache the layers.

from docker-openwrt-buildroot.

peteruithoven avatar peteruithoven commented on July 2, 2024

Maybe I don't get Docker. How I understand is that I could separate:

  • The installation of dependencies (apt-get)
  • Cloning openwrt from git
  • and adding a user.
    When adding a user fails because I made a mistake in the Dockerfile, I could fix it and run build again. Because these steps are separated it wouldn't need to reinstall the dependencies and clone openwrt, because these can be retrieved from cache. This would make for a faster Dockerfile development workflow?

from docker-openwrt-buildroot.

noonien avatar noonien commented on July 2, 2024

That might be the case when working with Dockerfiles that have frequent updates, however, this is not the case.

Using build caches would also mean that if you do a new build to use the latest dependencies, those might not get updated unless you issue "--no-cache=true", this might be counter-intuitive.

from docker-openwrt-buildroot.

peteruithoven avatar peteruithoven commented on July 2, 2024

But, isn't that the case anyway? That it will try to get the RUN command from cache. In your case it's just one, instead of multiple?

from docker-openwrt-buildroot.

noonien avatar noonien commented on July 2, 2024

I've split the RUN command into multiple sections, the build should work better with caches now.

from docker-openwrt-buildroot.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.