Commit a26cd8b
committed
[docker] consolidate dockerfiles
This allows us to parameterise later layers on earlier ones.
In practice, I want to use this to avoid rebuilding the `base` layer in
PR and merge queue runs, building it only on `main` and release branches
and tags. As a drive-by bonus, this means we can cache the `base` and
`build` layers for reuse when building the `test` layer.
I've also added a hook to allow building from a local working copy. (By
providing an EC_REPO argument when building the `test` target.) This
should allow us to pre-build the test image once and for all for all
post-build checks. (Using `.` as EC_REPO, perhaps—haven't really thought
that far.)1 parent 5955e4b commit a26cd8b
5 files changed
Lines changed: 55 additions & 59 deletions
Lines changed: 52 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
4 | 41 | | |
5 | 42 | | |
6 | 43 | | |
| |||
13 | 50 | | |
14 | 51 | | |
15 | 52 | | |
| 53 | + | |
| 54 | + | |
16 | 55 | | |
17 | 56 | | |
18 | 57 | | |
| |||
25 | 64 | | |
26 | 65 | | |
27 | 66 | | |
28 | | - | |
29 | | - | |
30 | 67 | | |
31 | 68 | | |
32 | 69 | | |
| |||
102 | 139 | | |
103 | 140 | | |
104 | 141 | | |
105 | | - | |
106 | | - | |
107 | 142 | | |
108 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
0 commit comments