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
Yoan Blanc
fec7c126f9
run: set userStr
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-04 14:14:10 -08:00
Yoan Blanc
52acd798f8
run: unset any HOME variable after USER ran
...
Running USER didn't reset HOME which had to be explicitly set.
Closes #1082
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-04 14:12:42 -08:00
Tejal Desai
c1e3f42625
fix user metadata string
2020-03-04 13:08:38 -08:00
Tejal Desai
17f808da8a
check for filepath.Walk error everywhere
2020-02-28 04:23:27 -08:00
Tejal Desai
8d9e6b8ea5
Merge pull request #1027 from tejal29/small_refacto
...
refactor copy.chown code and add more tests
2020-02-07 13:48:05 -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
d94a1ed53b
fix linter
2020-02-06 11:40:41 -08:00
Tejal Desai
9dba097a7e
refactor and add more tests
2020-02-06 11:40:41 -08:00
Tejal Desai
2cd68d2e2f
fix flake in copy symlink
2020-02-05 14:40:52 -08:00
Tejal Desai
56125ff464
Rebase from master with some changes
2020-02-03 14:57:10 -08:00
xanonid
ac4c80d241
Refactor code, introduce constants for uid/gid = -1
2020-02-03 14:56:23 -08:00
xanonid
e3b5a7b85d
Support COPY --chown flag ( Closes : #9 )
2020-02-03 14:56:23 -08:00
Tejal Desai
18fec3ba38
fix lint
2020-02-03 11:03:58 -08:00
Tejal Desai
db6f6c5ad3
more tests and do not error out if user not found
2020-02-03 10:11:40 -08:00
Tejal Desai
956495784e
fix group string being always set to uid in case a user has a gid set
2020-02-01 15:19:36 -08:00
Tejal Desai
0529579db7
Merge pull request #971 from tejal29/915
...
Fix Symlinks not being copied across stages
2020-01-27 10:58:49 -08:00
Tejal Desai
e8fffda7cb
Merge pull request #995 from tejal29/507
...
Fix home and group set for user command
2020-01-24 22:18:09 -08:00
Tejal Desai
308137f46d
Merge pull request #994 from wmuizelaar/fix_extracted_verbose_logging
...
Change loglevel for extractedFiles to debug. Fixes #901
2020-01-24 14:04:50 -08:00
Cole Wippern
cd9be5d513
reuse cached layer
2020-01-23 16:48:26 -08:00