Joe Kutner
0a0b4f1583
Add func to append to ignorelist.
...
This allows those using Kaniko as a library to add ignored dirs and
files without needs to modify /proc/self/mountinfo or doing other
strange things with mount -t tmpfs
2020-08-26 08:30:42 -05:00
Tejal Desai
0c7e1644cb
Merge pull request #1322 from caarlos0/opts
...
feat: new git flags
2020-08-13 15:08:36 -07:00
Tejal Desai
df7f4cc9dc
add boilerplate
2020-08-13 14:44:07 -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
94b2b6b391
gofmt
2020-08-13 14:03:38 -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
1f456866eb
Merge branch 'master' into opts
2020-08-13 10:43:14 -07:00
Tejal Desai
1bf66ef435
Merge pull request #1153 from why-xn/master
...
Checkout a specific git commit
2020-08-13 10:41:26 -07:00
Tejal Desai
d83338e372
Merge pull request #1318 from caarlos0/git
...
feat: accept GIT_TOKEN
2020-08-13 10:40:07 -07:00
Tejal Desai
28a38ea4c2
Merge pull request #1374 from tsufeki/current-platform-in-warmer
...
Use current platform when fetching image in warmer
2020-08-13 10:36:58 -07:00
Tejal Desai
4ec9f206c8
Merge pull request #1379 from tejal29/fix_use_new_run
...
fix use new run marker
2020-08-13 09:46:20 -07:00
Tejal Desai
9a12c6f88e
gofmt
2020-08-12 18:54:53 -07:00
Tejal Desai
a8bef58fa5
Merge branch 'master' into opts
2020-08-12 16:55:51 -07:00
Tejal Desai
553933514a
fix use new run marker
2020-08-12 16:06:19 -07:00
tsufeki
4af795bf4a
Use current platform when fetching image in warmer
...
Cache warming fetched images without specifying platform, which resulted
in always pulling default linux/amd64. Even when kaniko was built and
run on arm64.
This change brings warmer's behaviour in line with executor's by
specifying runtime.GOOS/GOARCH.
Fixes #1372
2020-08-07 15:52:15 +02:00
Carlos Alexandro Becker
008f8e890c
fix: lint issues
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-29 23:32:40 -03:00
Carlos Alexandro Becker
fdcc40683e
fix: lint issues
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-29 23:26:08 -03:00
Carlos Alexandro Becker
ed04106af4
Merge remote-tracking branch 'upstream/master' into git
2020-07-29 23:24:17 -03:00
Tejal Desai
a47a78edae
Merge pull request #1319 from caarlos0/go-git
...
feat: upgrade go-git
2020-07-28 21:32:16 -07:00
Tejal Desai
92917bab3a
Merge pull request #1326 from greut/add-to-err-on-404
...
add should fail on 40x
2020-07-28 21:30:29 -07:00
Tejal Desai
2427b348ac
Merge pull request #1350 from hlubek/bugfix-reproducible-whiteout
...
Bugfix: Reproducible layers with whiteout
2020-07-28 14:57:28 -07:00
Tejal Desai
46f270bbd4
Merge pull request #1264 from greut/fix/1172
...
pkg: prepend library when using registry mirror
2020-07-28 14:55:36 -07:00
Joe Kutner
29a02b08ff
Move snapshotPathPrefix into a method
...
This allows the value to be determined on the fly, which supports consumers that use Kaniko snaphot as a library and may need to change the value of config.KanikoDir
2020-07-26 21:46:33 -05:00
Christopher Hlubek
5c61bc44bd
Remove unreliable unit test for SnasphotFS with whiteout
2020-07-20 11:35:25 +02:00
Christopher Hlubek
699a4bee32
Bugfix: Reproducible layers with whiteout
...
When deleting files of previous layers, the whiteout files
were not added to the tar file in a consistent order.
This change adds a stable sorting to the whiteout files and
adds unit tests to check for stable sorting.
2020-07-16 10:56:59 +02: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
Carlos Alexandro Becker
e483bee97c
feat: git options
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-24 15:31:32 -03:00
Carlos Alexandro Becker
f744acfbb7
Merge remote-tracking branch 'upstream/master' into opts
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-24 15:10:05 -03:00
Tejal Desai
cdbd8af057
Merge pull request #1328 from jonjohnsonjr/artifact-registry
...
Add pkg.dev to automagic config file population
2020-06-23 14:55:04 -07:00
Jon Johnson
c42881410c
Add pkg.dev to automagic config file population
...
Kaniko currently does config file setup for GCR such that pushing to GCR
automagically works. This change does the same for pkg.dev:
https://cloud.google.com/artifact-registry
This also tightens up the hostname check to ensure we don't send
credentials to a registry that happens to contain "gcr.io".
2020-06-23 11:23:07 -07:00
Yoan Blanc
999365f5f9
fixup! fixup! add should fail on 40x
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-06-20 10:42:59 +02:00
Yoan Blanc
ca23ae441e
add should fail on 40x
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-06-20 09:49:11 +02:00
Carlos Alexandro Becker
57c2df4d97
feat: new git flags
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 17:24:04 -03:00
Carlos Alexandro Becker
ab42a919a5
feat: recurse submodules
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 12:01:25 -03:00
Carlos Alexandro Becker
7b8879c03f
feat: upgrade go-git
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 11:58:04 -03:00
Carlos Alexandro Becker
13e6bdf533
fix: improve tests
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 11:20:27 -03:00
Carlos Alexandro Becker
8322cbe3b6
feat: accept GIT_TOKEN
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-15 11:16:50 -03:00
Tejal Desai
98a2ee2e34
intoduce delay
2020-06-06 20:52:58 -07:00
Tejal Desai
07cdfcf091
fix tests
2020-06-06 20:28:04 -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
1033ad789b
Merge pull request #1301 from tejal29/addRedoSnapshotter
...
Add redo snapshotter.
2020-06-06 16:48:30 -07:00
Tejal Desai
8d3bbd20f4
initialize
2020-06-06 15:50:24 -07:00
Tejal Desai
988114d022
re-use cache when checking and adding
2020-06-06 15:27:39 -07:00
Tejal Desai
c576771497
fix tests
2020-06-06 11:37:35 -07:00
Tejal Desai
b9d25dd5db
better whiteout logic
2020-06-06 10:50:24 -07:00
Tejal Desai
cbf4452fe9
fix snapshot
2020-06-06 10:03:37 -07:00
Tejal Desai
b7462742c1
add deletion logic
2020-06-06 02:05:45 -07:00
Yoan Blanc
ce8298bb14
image: add test
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-06-06 10:31:42 +02:00
Tejal Desai
ede69f8507
check file changed in loop
2020-06-06 01:24:46 -07:00
Tejal Desai
2a7d33526b
lint
2020-06-06 00:30:07 -07:00
Tejal Desai
0f5387960e
minimal changes
2020-06-06 00:16:14 -07:00
Tejal Desai
58276274e8
better improvements
2020-06-05 23:44:17 -07:00
Yoan Blanc
fcb055e581
Merge remote-tracking branch 'origin/master' into fix/1172
2020-06-06 08:42:30 +02:00
Tejal Desai
43338d4b2f
add a new run command along with a new flag
2020-06-05 19:53:16 -07:00
Tejal Desai
6ab97e2b5f
ADD GCB benchmark code
2020-06-05 12:46:47 -07:00
Tejal Desai
bea020f34f
add another snapshotter
2020-06-05 02:54:32 -07:00
Tejal Desai
ec3ca84ad9
add another redo snapshotter
2020-06-04 22:02:13 -07:00
Tejal Desai
86d77d8800
Merge pull request #1283 from tejal29/fix_looping
...
[Perf] Reduce loops over files when taking FS snapshot.
2020-06-04 14:30:53 -07:00
Tejal Desai
2303e47aad
Merge pull request #1260 from ljakimczuk/master
...
Resolving nested meta ARGs
2020-06-04 13:24:34 -07:00
Tejal Desai
9c68c9a36c
Merge branch 'master' into fix_looping
2020-06-04 13:18:30 -07:00
Tejal Desai
8a585829b8
Update pkg/dockerfile/dockerfile_test.go
2020-06-04 12:28:51 -07:00
Tejal Desai
994a412d0b
some more renames
2020-06-02 16:08:46 -07:00
Tejal Desai
cbf3073fda
rename whitelist to ignorelist
2020-06-02 15:56:27 -07:00
Yoan Blanc
af14ef2c8d
Merge remote-tracking branch 'origin/master' into fix/1172
2020-05-25 13:54:37 +02:00
Tejal Desai
e0f93578b6
Merge pull request #1284 from tejal29/add_timings
...
add timings for resolving paths
2020-05-23 15:37:58 -07:00
Tejal Desai
dcea89c317
rm file
2020-05-23 15:27:37 -07:00
Tejal Desai
41bc04dc12
add timings for resolving pahts
2020-05-23 14:29:46 -07:00
Tejal Desai
503aad17b7
Fix looping through files twice
2020-05-23 14:24:07 -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
31feaa4c12
Merge pull request #1263 from yorinasub17/git-auth-token-env
...
Add ability to set git auth token using environment variables
2020-05-20 00:59:14 -07: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
1d11b40052
Merge pull request #1253 from tejal29/fix_non
...
fix switching to non existent workdir
2020-05-19 15:39:08 -07:00
Tejal Desai
da5c420ee9
use a mock
2020-05-19 15:05:46 -07:00
Yoan Blanc
fef4bb55b7
image: prepend library/ when using registry
...
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-05-12 14:46:25 +02:00
Yoriyasu Yano
6e615a8ff9
Add ability to set git auth token using environment variables
...
Currently the only way to set the git auth is by including it in the context
git URL. This can be problematic for certain environments such as ECS where the
command args for are stored in logs. Introduces updates to allow setting the
authentication info using the environment variables `GIT_USERNAME` and
`GIT_PASSWORD`.
2020-05-11 10:59:48 -05:00
Lukasz Jakimczuk
3dcac1b906
Resolving nested meta ARGs against themselves and build ARGs
2020-05-09 01:23:02 +02:00
Mitchell Friedman
6978fab45c
Add retries to image push.
...
This uses the default provided retry transport by
go-containerregistry as this originally had no retries
built in.
This is useful to avoid intermittent failures of image
registries when returning a retryable status code.
2020-05-08 14:18:43 +01:00
Tejal Desai
c271f989f5
fix switching to non existent workdir
2020-05-07 18:59:01 -07:00
Tejal Desai
cb11a9982c
Merge pull request #1250 from gliptak/patch-2
...
Correct typo
2020-05-07 18:27:38 -07:00
Tejal Desai
c71deae38c
remove dedupes
2020-05-07 16:37:17 -07:00
Gábor Lipták
bec0e6a8e3
Correct typo
2020-05-07 16:24:07 -04:00
Tejal Desai
d9a6bbe956
add tests
2020-05-06 12:11:03 -07:00
Tejal Desai
23ac909b2d
Revert "small perf optimizing. Only remove whiteout path if it needs to be included in the tar"
...
This reverts commit 67db51810b .
2020-05-06 12:08:44 -07:00
David Dooling
8bfd370ef9
Provide full path to Docker config file
...
Add tests. The tests assume a POSIX file system, but it seems many
other tests assume Linux, so perhaps this is not a problem, or at
least does not add a new problem.
Fixes #1235
2020-05-06 10:02:47 -05:00
Tejal Desai
113c2397ea
Update comment.
2020-05-05 22:27:28 -07:00
Tejal Desai
5e275d9824
Apply dockefile exclude only for first stage
2020-05-05 21:45:36 -07:00
David Dooling
0871dfd6ab
Use DOCKER_CONFIG for docker config location
...
If the DOCKER_CONFIG environment variable is set, use it when
determining if the Docker config file exists. Fall back to kaniko
default if it the DOCKER_CONFIG environment variable is not set.
Fixes #1228
2020-05-04 16:46:50 -05:00
Tejal Desai
b62b3779fe
Merge pull request #1223 from sileht/fix-workdir-relative
...
feat: ensure relative WorkingDir work
2020-05-04 10:29:51 -07:00
Jordan Goasdoue
a9c7839491
fix: stages are now resolved correctly if skip-unused
2020-05-04 18:38:18 +02: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
ae9c9b2813
Merge pull request #1211 from jonhenrik13/log-timestamp-v0.19.0
...
Add timestamp to logs
2020-05-03 22:41:17 -07: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
ee097f9b70
fix unit tests
2020-05-03 22:01:50 -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
cb14b65e08
fix boilerplate
2020-05-03 21:10:55 -07:00
Tejal Desai
5cbf34b67e
Update pkg/util/groupids_fallback.go
2020-05-03 21:04:22 -07:00
Tejal Desai
d37896b94f
Merge branch 'master' into experiment
2020-05-03 21:02:41 -07:00
Tejal Desai
94ee809e1c
Merge branch 'master' into log-timestamp-v0.19.0
2020-05-03 20:58:34 -07:00
Tejal Desai
fe0500f8e6
Merge pull request #1196 from yw-liu/master
...
Add http support for git repository context
2020-05-03 20:53:43 -07:00
Tejal Desai
ae11db43d7
Merge pull request #1193 from tp-tc/dangling-symlink
...
Ignore the target of dangling symlinks.
2020-05-03 20:47:12 -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
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
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
36748facc5
Merge pull request #1203 from dani29/cache
...
Set very large logs to Trace level
2020-05-01 10:35:15 -07:00
Tejal Desai
7ccf05fae3
Merge pull request #1165 from JordanGoasdoue/multistage-now-respects-dependencies
...
feat: multistages now respect dependencies without building unnecessary stages
2020-05-01 10:34:47 -07:00
Tejal Desai
7eb2458ba4
Merge pull request #1166 from gilbsgilbs/snapshot-directories
...
Always add parent directories of files to snapshots.
2020-05-01 10:25:25 -07:00
Tejal Desai
8a780be748
Merge pull request #1139 from JordanGoasdoue/allow-injecting-context-tar-gz
...
feat: allow injecting through stdin tar.gz on kaniko
2020-05-01 10:24:05 -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
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
Tejal Desai
691acd094a
try different root dir
2020-04-29 22:42:33 -07:00
Jon Henrik Bjørnstad
41a95fe4bd
Add timestamp to logs
2020-04-23 13:40:47 +02:00
Dani Raznikov
04888f2690
Set loud logs to trace level
2020-04-18 20:27:25 +03:00
Jordan Goasdoué
8cbc7a8ca2
feat: multistages is now built without unusued stages
2020-04-17 09:59:56 +02:00
yw-liu
73eb47c752
replace string literal with constant
2020-04-17 09:07:38 +08:00
yw-liu
2e90173238
fix boilerplate
2020-04-17 00:37:12 +08:00
yw-liu
c9fc6b5bcf
fix golint problem
2020-04-17 00:21:48 +08:00
yw-liu
0fc311a8b7
make string var as constant
2020-04-17 00:00:24 +08:00
yw-liu
7912e4c87b
modify unit-test
2020-04-16 23:48:43 +08:00
yw-liu
d8b8e811dd
modify code format and unit-test
2020-04-16 23:44:37 +08:00
yw-liu
4f8d074e00
add unit-test
2020-04-16 22:21:09 +08:00
Dani Raznikov
8d6a75a745
merge conflict fixes
2020-04-15 16:10:45 +03:00
Dani Raznikov
e8323441ab
resolve conflict with PR #1160
2020-04-15 15:58:43 +03:00
Tejal Desai
2270ac03d2
Merge pull request #1160 from JordanGoasdoue/can-now-resolve-args-from-stage
...
feat: can now resolves args from all stages
2020-04-14 14:18:09 -07:00
yw-liu
34a6ec250f
add http support for git pull
...
usage: set the GIT_PULL_METHOD env var to http or https for starting the container
2020-04-14 20:25:20 +08: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
5061b72e42
Ignore the target of dangling symlinks.
2020-04-13 16:26:19 -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
6b44ed4477
calculateDepdencies on a copy of envvars
2020-04-04 23:27:15 +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
Gilbert Gilb's
14170aa455
Fix sorting of parent directories.
...
This refactoring reversed the order of the "ParentDirectories" function: ffc372a63b (diff-d36eb675aa49a7b471e3a2be77005b18R465)
As a side-effect, parent directories weren't added in lexicographical
order, which broke some tests. We now ensure in unit test that the order
of the ParentDirectories function is stable.
2020-03-31 20:18:24 +02:00
Gilbert Gilb's
fd8a2d6dd8
Merge branch 'master' into snapshot-directories
2020-03-31 14:25:04 +02:00
Tejal Desai
0fe0a64113
Merge pull request #1168 from PhoenixMage/32bit-overflow-fix
...
32bit overflow fix
2020-03-30 10:23:31 -07: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
PhoenixMage
aa6a3de316
Fix 32bit overflow
...
math.UaxUint32 will actually overflow on a 32 bit platform (tested on armv7)
This will resolve that issue.
2020-03-30 23:37:34 +11:00
Gilbert Gilb's
e5585fded8
Always add parent directories of files to snapshots.
...
During a snapshot, when a file changed and not its parent directories,
the parent directories weren't added to the layer. This is inconsistent
with Docker's behavior which always add parent directories to the layer.
In some edge-cases, it could lead to problems with docker considering
that parent directories where owned by root in forthcoming layers
although they shouldn't (see #1163 ).
Also, Docker seems to be POSIX compliant regarding the name of
directories in the archive, which always have a slash appended. This
commit also fixes this.
Fixes #1163
2020-03-29 18:25:37 +02: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
Jordan Goasdoué
ed883b9015
feat: can now resolves args from stage
2020-03-27 18:42:46 +01:00
Tejal Desai
340ca79fbb
lint
2020-03-25 11:01:12 -07:00
Tejal Desai
1978f1e08e
Merge pull request #1130 from Vlatombe/set_image_platform
...
Set image platform for any build
2020-03-25 10:10:41 -07:00
Tejal Desai
9567b755dd
fix unit tests
2020-03-25 10:09:33 -07:00
Tejal Desai
2ea28fc7f5
revert back to previous file to save logic
2020-03-25 09:43:59 -07:00
Tejal Desai
caaf6c8adf
fix tests
2020-03-24 10:50:59 -07:00
Sam Stoelinga
1b662e7834
Merge pull request #1140 from samos123/fix-1122-public-gcr
...
Add ability to use public GCR repos without being authenticated
2020-03-24 10:31:58 -07:00
Vincent Latombe
336bcd3a9a
Merge branch 'master' into set_image_platform
2020-03-24 09:51:11 +01:00
Tejal Desai
5da32d3f18
Merge pull request #1147 from tejal29/small_perf
...
small perf optimizing. Only remove whiteout path if it needs to be included in base image
2020-03-23 18:12:39 -07:00
Tejal Desai
ffc372a63b
refactor to add unit tests
2020-03-23 17:48:49 -07:00
Sam Stoelinga
1fb1eddd8c
Test: Remove DockerConf after CheckPushPermission
2020-03-23 10:51:09 -07:00
Shihab Hasan
99b08059c4
Checkout a specific git commit
2020-03-23 12:12:52 +06:00
Sam Stoelinga
c2393df7c3
Cleanup push_test CheckPushPermission unit tests
2020-03-22 17:11:08 -07:00
Sam Stoelinga
c56f16b163
Create constant for Docker conf location
2020-03-21 16:45:04 -07:00
Sam Stoelinga
8518b37ca1
Add unit tests for CheckPushPermissions
2020-03-21 16:15:34 -07:00
Jordan Goasdoué
d08a767454
feat: allow injecting through stdin tar.gz on kaniko
2020-03-18 12:29:49 +01:00
Yoan Blanc
03fcc537c3
Merge remote-tracking branch 'origin/master' into fix-chown
2020-03-18 09:01:15 +01:00
Tejal Desai
67db51810b
small perf optimizing. Only remove whiteout path if it needs to be included in the tar
2020-03-18 00:43:55 -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
a173bf020b
Merge pull request #1115 from JordanGoasdoue/allow-build-context-from-local-targz
...
feat: add support of local '.tar.gz' file inside the kaniko container
2020-03-17 15:24:10 -07:00
Tejal Desai
0185818bd8
Merge pull request #1134 from dani29/master
...
Add support to --chown flag to ADD command (Issue #57 )
2020-03-17 15:07:02 -07:00
Sam Stoelinga
e1e6c55386
Merge pull request #1128 from zhangyuheng/fix/typo
...
fix: credential typo
2020-03-17 11:26:36 -07:00
Sam Stoelinga
66268690b3
Add comments
2020-03-17 09:11:50 -07:00
Sam Stoelinga
8a020010b7
Add ability to use public GCR image
...
Kaniko by default used to configure the GCR credential helper however
this caused Kaniko to fail when trying to use a base image from a public
GCR image. This patch makes it possible to use public GCR images as base
image when using docker even when you're not authenticated to GCR.
Co-authored-by: Nate Williams <nate.williams@files.com>
2020-03-17 09:09:41 -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
Jordan GOASDOUE
fda7ed4f74
feat: add support of local '.tar.gz' file inside the kaniko container
2020-03-12 22:51:30 +01:00
Tejal Desai
32decf5798
Merge pull request #1075 from greut/label-flag
...
executor: add --label flag
2020-03-12 13:47:01 -07:00
Tejal Desai
18de5d6d2d
Merge pull request #1037 from antechrestos/feature/add_option_to_import_registry_certificate
...
Allow user to provide registry certificate
2020-03-12 12:56:40 -07:00
Vincent Latombe
4d26c1f51e
Set OS/ARCH when assembling image
2020-03-12 10:41:32 +01:00
Yuheng Zhang
8eef58939b
fix: credential typo
2020-03-12 14:31:15 +08:00
Tejal Desai
9592f2640f
more tests similar to docker cp
2020-03-09 15:54:35 -07:00
Ben Einaudi
b73c2c10c8
Allow user to provide registry certificate
...
Fixes #1100
Fixes #1101
2020-03-08 18:17:50 +01:00
Tejal Desai
2181c5e6f5
create correct link across Multistage builds
2020-03-07 11:28:16 -08: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
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
579ec52a30
add more tests for stageBuilder_build
2020-03-04 17:04:42 -08:00