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
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
bfd92b5c6b
Merge pull request #1342 from aca/fix
...
Set correct PATH for exec form
2020-08-13 14:20:04 -07:00
Tejal Desai
abcc16b4cc
fix gofmt
2020-08-13 13:59:58 -07:00
Tejal Desai
11024f258d
new implementation for run
2020-08-13 13:43:07 -07:00
Tejal Desai
472376307e
Update run.go
2020-08-13 13:17:42 -07:00
Tejal Desai
8f1528764f
add defer.
2020-08-13 10:47:35 -07:00
Tejal Desai
9a12c6f88e
gofmt
2020-08-12 18:54:53 -07:00
Tejal Desai
553933514a
fix use new run marker
2020-08-12 16:06:19 -07:00
aca
dd4191ad3d
gofmt
2020-07-04 03:46:41 +09:00
aca
966cd03499
Set correct PATH for exec form
...
Fixes #1304
2020-07-04 01:16:05 +09: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
2a7d33526b
lint
2020-06-06 00:30:07 -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
cbf3073fda
rename whitelist to ignorelist
2020-06-02 15:56:27 -07:00
Tejal Desai
c271f989f5
fix switching to non existent workdir
2020-05-07 18:59:01 -07:00
Mehdi Abaakouk
cfc9f39176
feat: ensure relative WorkingDir work
...
Currently the default WorkingDir in test is "/", while in reallife it's
empty.
This change the tests to reflect reel life and fix the case where
First WorkingDir is relative.
2020-05-04 15:48:39 +02:00
Tejal Desai
e1c7862911
Merge pull request #1214 from tejal29/experiment
...
Snapshot FS on first cache miss.
2020-05-03 22:39:25 -07:00
Tejal Desai
e32715ef55
Merge pull request #1164 from tstromberg/add-groups
...
Add secondary group impersonation w/ !cgo support
2020-05-03 22:00:36 -07:00
Tejal Desai
d37896b94f
Merge branch 'master' into experiment
2020-05-03 21:02:41 -07:00
Tejal Desai
095ea2991a
remove unused command
2020-05-03 20:40:41 -07:00
Tejal Desai
5090baafda
fix single snapshot
2020-05-03 20:23:07 -07:00
Tejal Desai
75864d5c85
flip the flag
2020-05-01 23:41:06 -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
8b3ff95b09
fmt
2020-04-30 17:07:18 -07:00
Tejal Desai
44b35b28eb
remove read succesS
2020-04-30 15:18:39 -07:00
Tejal Desai
8fb17f60d9
Defer initial snapshot. Remove ReadSuccess()
2020-04-30 13:25:22 -07:00
Dani Raznikov
04888f2690
Set loud logs to trace level
2020-04-18 20:27:25 +03:00
Thomas Stromberg
a6504769e3
Add secondary group impersonation w/ !cgo support
2020-03-28 22:01:20 -07:00
Thomas Stromberg
3426a24929
Add support for impersonating secondary groups
2020-03-28 12:10:37 -07:00
Tejal Desai
ffc372a63b
refactor to add unit tests
2020-03-23 17:48:49 -07:00
Yoan Blanc
3ff2ee3ba5
copy: unit test for chown
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-17 15:19:00 +01:00
Dani Raznikov
c136f886a9
Add support to --chown flag to ADD command
2020-03-14 16:24:40 +02:00
Tejal Desai
9592f2640f
more tests similar to docker cp
2020-03-09 15:54:35 -07:00
Tejal Desai
c523c691eb
revert back to old 0.17.1 behavior
2020-03-06 23:48:31 -08:00
Tejal Desai
8f87267002
fix lint error
2020-03-06 21:37:00 -08:00
Tejal Desai
6c14d202a3
better error wrapping and add more tests for copy
2020-03-06 17:18:36 -08:00
Tejal Desai
b4b70d040a
wip
2020-03-06 13:08:02 -08:00
Tejal Desai
3cc8aa2a9c
fix resolve link for dirs with trailing /
2020-03-06 09:38:00 -08:00
Yoan Blanc
fc668cd2b5
fixup! fixup! fixup! run: user LookupId
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-05 17:26:04 +01:00
Yoan Blanc
bd77f131fd
fixup! fixup! run: user LookupId
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-05 17:00:14 +01:00
Yoan Blanc
67fbdef360
fixup! run: user LookupId
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-05 16:49:13 +01:00
Yoan Blanc
c7028c6d2f
run: user LookupId
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-05 16:44:55 +01:00
Yoan Blanc
c553184416
user_test: docker doesn't care about group really
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-05 16:34:06 +01:00
Tejal Desai
9e83210b07
Rebase over 1105
2020-03-04 14:16:24 -08:00
Yoan Blanc
3d9bb21f75
user: keep existing HOME env
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-04 14:14:25 -08:00