Matt Moore
1ad4295462
Update ggcr to pick up estargz and caching option ( #1527 )
2020-12-21 10:09:21 -08:00
Tejal Desai
b04399eeac
add caching copy layers back ( #1518 )
...
* add caching copy layers back
* fix test
* lint
* fix test - 2
* Add integration test
* fix lint
2020-12-11 00:25:03 -08:00
Vincent Behar
dde98a8e73
feat(warmer): Warmer now supports all registry-related flags ( #1499 )
...
which means we can now:
- set up one or more mirrors
- set up registries certificates
- skip TLS verify
- use plain HTTP
using the same set of flags that are defined for the executor
2020-12-10 22:55:43 -08:00
Lars
c982956c15
Fix typo in error message ( #1494 )
2020-12-08 16:18:11 -08:00
mickkael
275cc9a7e7
Add option customPlatform ( #1500 )
...
* Add option customPlatform
* fix formatting
* fix No newline at end of file
2020-12-08 16:11:18 -08:00
Tinjo Schöni
5f4e2f1366
Fix .dockerignore for build context copies in later stages ( #1447 )
...
* Extend .dockerignore integration test with copies in later stages
.dockerignore should continue to apply when copying from the build context in later stages, but it currently doesn't
* Replace excluded global with passed along FileContext struct
This new FileContext struct allows much cleaner handling of context specific file exclusions.
The global excluded file state is no longer needed.
Additionally this also fixes the issue where excluded files aren't being applied for build context copies in later build stages.
2020-10-08 12:47:14 -07:00
Ian Kerins
1240333657
Stop caching COPY layers ( #1408 )
...
Cached COPY layers are expensive in that they both need to be retrieved
over the network and occupy space in the layer cache.
They are unnecessary in that we already have all resources needed to
execute the COPY locally, and doing so is a trivial file-system
operation. This is in contrast to RUN layers, which can do
arbitrary and unbounded work.
The end result is that cached COPY commands were more expensive when
cached, not less. Remove them.
Resolves #1357
2020-09-30 17:18:50 -07:00
Tejal Desai
98a2ee2e34
intoduce delay
2020-06-06 20:52:58 -07:00
Tejal Desai
4ac51ef515
merge
2020-06-06 20:17:17 -07:00
Tejal Desai
c85d64c8ae
better shdTakeSnapshot
2020-06-06 19:49:34 -07:00
Tejal Desai
b7462742c1
add deletion logic
2020-06-06 02:05:45 -07:00
Tejal Desai
58276274e8
better improvements
2020-06-05 23:44:17 -07:00
Tejal Desai
43338d4b2f
add a new run command along with a new flag
2020-06-05 19:53:16 -07:00
Tejal Desai
ec3ca84ad9
add another redo snapshotter
2020-06-04 22:02:13 -07:00
Tejal Desai
cbf3073fda
rename whitelist to ignorelist
2020-06-02 15:56:27 -07:00
Ben Einaudi
2f6090dcd7
Remove use of DefaultTransport
...
Using DefaultTransport and manipulating its tls configuration may lead to unexpected behaviour
2020-05-20 11:43:13 +02:00
Tejal Desai
3f3c19a545
Merge pull request #1234 from tejal29/fix_copy_from
...
Apply dockefile exclude only for first stage
2020-05-19 15:40:51 -07:00
Tejal Desai
c71deae38c
remove dedupes
2020-05-07 16:37:17 -07:00
Tejal Desai
5e275d9824
Apply dockefile exclude only for first stage
2020-05-05 21:45:36 -07:00
Jordan Goasdoue
a9c7839491
fix: stages are now resolved correctly if skip-unused
2020-05-04 18:38:18 +02:00
Tejal Desai
d37896b94f
Merge branch 'master' into experiment
2020-05-03 21:02:41 -07:00
Tejal Desai
a2af3272cf
Merge pull request #1192 from tp-tc/snapshot-maintainers
...
Handle `MAINTAINERS` when passing `--single-snapshot`.
2020-05-03 20:45:48 -07:00
Tejal Desai
5090baafda
fix single snapshot
2020-05-03 20:23:07 -07:00
Tejal Desai
db7687dbce
wip
2020-05-03 18:37:45 -07:00
Tejal Desai
75864d5c85
flip the flag
2020-05-01 23:41:06 -07:00
Tejal Desai
7d32139a13
fix a bug where file check nil is insufficient
2020-05-01 22:38:14 -07:00
Tejal Desai
32e3336d4c
add a new method to indicate if the command provides files to snapshot
2020-05-01 15:50:46 -07:00
Tejal Desai
6c627645ad
Merge pull request #1194 from tp-tc/greedy-cache-substitution
...
Don't generate cache key, if not caching builds.
2020-05-01 10:21:44 -07:00
Tejal Desai
2e1ca5f19d
remove log added for debugging
2020-05-01 09:40:39 -07:00
Ben Einaudi
d763b7e961
fix previous name checking in 'executor.build.fetchExtraStages'
2020-05-01 16:45:01 +02:00
Tejal Desai
8fb17f60d9
Defer initial snapshot. Remove ReadSuccess()
2020-04-30 13:25:22 -07:00
Tom Prince
c520218cec
Don't generate cache key, if not caching builds.
...
The cache key generation does environment subsitution in places that running
the commands doesn't. This causes issues if a command uses complex shell
substitutions. The cache key is generated even if caching isn't enabled.
This disables the cache key generation if caching is not enabled. This doesn't
fix the underlying issue, but limits it to when the cache is being used.
2020-04-13 16:50:13 -06:00
Tom Prince
484d03550c
Handle `MAINTAINERS` when passing `--single-snapshot`.
2020-04-13 15:54:27 -06:00
Dani Raznikov
f720c817c7
add unit tests
2020-04-12 20:17:40 +03:00
Dani Raznikov
961e634366
calculate dependency for onbuild
2020-04-10 18:49:34 +03:00
Dani Raznikov
70eb7ebcfa
suport multistage onbuild
2020-04-10 18:30:25 +03:00
Dani Raznikov
3ab6524fe5
optimize: don't parse Dockerfile twice and just reuse stages
2020-04-03 18:53:22 +03:00
Dani Raznikov
a3ce1cebf3
optimize: don't parse Dockerfile twice and just reuse stages
2020-04-03 17:39:59 +03:00
Tejal Desai
8dc64549a1
Merge pull request #1155 from tejal29/fix_multi_stage_symlinks
...
Refactor Kaniko to test across multistages
2020-03-30 10:21:51 -07:00
Tejal Desai
2ea28fc7f5
revert back to previous file to save logic
2020-03-25 09:43:59 -07:00
Vincent Latombe
336bcd3a9a
Merge branch 'master' into set_image_platform
2020-03-24 09:51:11 +01:00
Tejal Desai
ffc372a63b
refactor to add unit tests
2020-03-23 17:48:49 -07:00
Tejal Desai
0302e5150c
Merge pull request #1085 from tejal29/rm_buildargs_from_cache_key
...
remove build args from composite key and replace all build args
2020-03-17 16:02:59 -07:00
Tejal Desai
32decf5798
Merge pull request #1075 from greut/label-flag
...
executor: add --label flag
2020-03-12 13:47:01 -07:00
Vincent Latombe
4d26c1f51e
Set OS/ARCH when assembling image
2020-03-12 10:41:32 +01:00
Yoan Blanc
53326fa0bf
executor: add --label flag
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-07 18:17:26 +01:00
Tejal Desai
6c14d202a3
better error wrapping and add more tests for copy
2020-03-06 17:18:36 -08:00
Tejal Desai
2ba7d25090
remove build args from composite key and replace all build args before adding command to the cache
2020-02-28 01:51:31 -08:00
Tejal Desai
a17ad8e8e8
Merge pull request #882 from cvgw/u/cvgw/reuse-cached-layer
...
Do not recompute layers retrieved from cache
2020-02-07 13:37:39 -08:00
Tejal Desai
2cd68d2e2f
fix flake in copy symlink
2020-02-05 14:40:52 -08:00