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
dd5d2e6661
ignore errors while deleting
2020-02-28 04:48:22 -08:00
Tejal Desai
17f808da8a
check for filepath.Walk error everywhere
2020-02-28 04:23:27 -08:00
Tejal Desai
a1af057f99
Merge pull request #1069 from cvgw/u/cgwippern/implement-filepath-resolver
...
Resolve filepaths before scanning for changes
2020-02-25 00:19:38 -08:00
cvgw
60e2187d85
Fix #1020 os.Chtimes invalid arg
...
The zero value of time.Time is not a valid argument to os.Chtimes
because of the syscall that os.Chtimes calls. Instead we update the zero
value of time.Time to the zero value of Unix Epoch
2020-02-24 08:29:19 -08:00
cvgw
965b606720
remove cruft and unneeded loop
2020-02-23 13:38:08 -08:00
cvgw
01f6aba517
update resolveSymlinkAncestor and add tests
2020-02-22 11:17:39 -08:00
cvgw
a675ad998a
Resolve filepaths before scanning for changes
2020-02-20 09:45:44 -08:00
Yoan Blanc
474fdcf68d
image: fix registry mirror setup
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-02-16 11:41:51 +01:00
Yoan Blanc
edc4eb33f4
Merge remote-tracking branch 'origin/master' into registry-mirror
2020-02-16 09:28:54 +01:00
Tejal Desai
2716557379
Merge pull request #1032 from tinkerborg/consistent-sha
...
Ensure image SHA stays consistent when layer contents haven't changed
2020-02-13 11:22:27 -08:00
cvgw
7e2009b5e2
More idiomatic logging config
...
Update logging configuration to be more idiomatic for a Cobra
application
2020-02-07 16:13:03 -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
c9dc474031
fix linter
2020-02-07 13:47:17 -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
8b69a13641
fix commut
2020-02-06 15:37:47 -08:00
Tejal Desai
674f5bda5d
fix tests
2020-02-06 15:17:09 -08:00
Or Sela
9dd050b892
set log format using a flag
2020-02-07 00:05:59 +02: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
tinkerborg
82bce229bd
omit uname/gname in tar headers
...
When using cache, the rootfs may not have been extracted. This prevents uname/gname from resolving
as there is no /etc/password or /etc/group. This makes this layer unnecessarily differ from
a cached layer which does contain this information. Omitting these should be consistent with Docker's
behavior.
2020-02-06 13:36:26 -05:00
tinkerborg
cc2c9a0663
sort filesToAdd in TakeSnapshot
...
filesToAdd is sorted in TakeSnapshotFS, but not here. This makes ordering unpredictable within the layer's tarball,
causing the SHA to differ even if layer contents haven't changed
2020-02-06 13:36:21 -05:00
Tejal Desai
9e17ffd6cb
fix unit tests
2020-02-05 15:59:07 -08:00
Tejal Desai
2cd68d2e2f
fix flake in copy symlink
2020-02-05 14:40:52 -08:00
Tejal Desai
2e95c3040c
update initialWhitelist instead of whitelist
2020-02-04 11:06:26 -08:00
Tejal Desai
31f626cb22
initilize group to 0
2020-02-03 22:15:56 -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
517cb50278
Add Unit test for GetUIDAndGIDFromString
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
6894be442f
remove duplicate code
2020-02-01 15:19:36 -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
0e833e4643
fix test
2020-02-01 09:29:18 -08:00
Tejal Desai
5a4a6c4a17
fix test flake
2020-01-31 15:23:38 -08:00
Tejal Desai
3f73230884
Merge pull request #1000 from tejal29/769
...
whitelist /tmp/apt-key-gpghome.* directory
2020-01-31 10:50:26 -08:00
Thomas Bonfort
6b6742fd9d
Changle loglevel for whiteouts to debug
2020-01-31 12:02:32 +01:00
Tejal Desai
611ba51c88
fix web editor conflicts resolutions
2020-01-30 11:18:53 -08:00
Tejal Desai
47ab3fe997
Merge branch 'master' into registry-mirror
2020-01-29 11:42:06 -08:00