Commit e79673d
committed
Bug 1820438: Slim down upstream builder
With the static build fix for index images committed
(#173),
we introduced a side effect of index images including all the
build layers included in the build image. That bloated the index images
using the default from image by over 1gb in size.
To resolve this, this commit introduces two changes. First, it adds a
multistage build to the upstream builder to just copy the output of the
build into a scratch image rather than include all the layers from the
base alpine image. Second, it adds a new opm dockerfile with the same
format except that only the binaries needed to host index images are
included.
After this commit is merged, a release should be cut and the dockerfile
generator needs to be updated to point to a new opm builder as the
default from index1 parent 2bdcd07 commit e79673d
File tree
2 files changed
+27
-6
lines changed2 files changed
+27
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments