Comments (5)
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.
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.
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.
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.
I've split the RUN command into multiple sections, the build should work better with caches now.
from docker-openwrt-buildroot.
Related Issues (11)
- vs. leesah/docker-openwrt-dev ? HOT 1
- Error while pulling docker image HOT 3
- gcc-multilib for ARM64 CPU
- version on Docker Hub is outdated HOT 2
- github version: /bin/sh: 1: cannot create /etc/sudoers.d/openwrt: Directory nonexistent HOT 5
- svn: E000113: Unable to connect to a repository at URL 'http://svn.luci.subsignal.org/luci/branches/luci-0.11/contrib/package
- make: "collect2: error: ld returned 1 exit status" HOT 2
- Make error because it tries openssl-1.0.1j.tar.gz (unavailable), instead of available openssl-1.0.1k.tar.gz HOT 4
- Retrieve image? HOT 4
- Why clone OpenWRT inside container? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-openwrt-buildroot.