Commit c85c69d
committed
containers/ws: improve caching for incremental builds
When iterating locally it helps if we can avoid having to repeat the
"download the packages from the Fedora servers" step, which is currently
run every time.
We can do that by separating it to a separate step that runs *before* we
copy in the entire contents of what becomes the /container directory
(which changes on every iteration).
We install cockpit-bridge and cockpit-ws up front now even though they
will still be installed later by install.sh because we want the
dependencies (and I couldn't find any easy way to say "just install the
runtime dependencies of these packages).
We don't bother with any "layer avoidance" techniques here because this
is just the builder container which doesn't become part of the final
result.1 parent 6605f3f commit c85c69d
2 files changed
+20
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
8 | 26 | | |
9 | 27 | | |
10 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| |||
0 commit comments