Priya Wadhwa
6934f785c8
Pass in clone of buildargs for dockerfile parsing
2018-05-14 16:19:26 -07:00
priyawadhwa
cde277c374
Merge pull request #141 from priyawadhwa/multistage
...
Support multi stage builds
2018-05-14 15:41:18 -07:00
Christian Jantz
fbe3e05801
WIP: Feature/healthcheck signal ( #177 )
...
* added basic healthcheck implementation
* updated go-containerregistry version
* added build args parameter to healthcheck execute
* added go-containerregistry HealthCheck passing
* dereferenced health for conversion
2018-05-14 14:28:24 -07:00
Priya Wadhwa
459ddffb3c
Updated tests
2018-05-11 16:19:33 -07:00
Priya Wadhwa
282f8abbee
Merge master, refactor to work with ARG
2018-05-11 15:53:11 -07:00
Priya Wadhwa
4de14c34dd
Wrap BuildArgs in our own type
2018-05-11 10:23:13 -07:00
Priya Wadhwa
33f4805f62
Merged master, fixed merge conflict
2018-05-10 13:51:23 -07:00
priyawadhwa
676e6696b6
Merge pull request #172 from priyawadhwa/symlink-bug
...
Ignore symlinks during file extraction if link is whitelisted
2018-05-10 14:07:07 -04:00
Priya Wadhwa
347ce66a9b
Merged master, fixed merge conflict
2018-05-09 13:50:33 -07:00
Priya Wadhwa
26d8501489
Support BuildArgs for arg command
2018-05-09 12:24:38 -07:00
Priya Wadhwa
f5b8457405
Add shell command to commands.go
2018-05-09 12:01:05 -07:00
Priya Wadhwa
d040c89af6
Ignore symlinks during file extraction if link is whitelisted
2018-05-08 11:02:29 -07:00
Priya Wadhwa
7fbc21ec73
Merged master, fixed merge conflict
2018-05-07 09:14:17 -07:00
priyawadhwa
60cbc549af
Merge pull request #159 from chrisz100/feature/cmd_stopsignal
...
Feature/cmd stopsignal
2018-05-02 11:50:45 -04:00
priyawadhwa
1fca51e6be
Update CreatedBy field in config history ( #163 )
2018-05-02 00:36:12 -07:00
Priya Wadhwa
67a3727eba
Merge branch 'master' of github.com:GoogleContainerTools/kaniko into multistage
2018-05-01 11:29:51 -04:00
Christian Jantz
dbdbee035d
Merge branch 'master' into feature/cmd_stopsignal
2018-05-01 12:54:55 +02:00
Christian Jantz
d63bc6da4b
set fixed index for resolvedEnv slice on environment replacement - will always be len 1
2018-05-01 12:29:57 +02:00
Christian Jantz
b5e68f4b7b
added signal validation
2018-05-01 12:12:36 +02:00
Priya Wadhwa
a1acbe8aa8
Fixed ResolveStages
2018-04-30 22:37:45 -04:00
Christian Jantz
5af3645a83
added shell command ( #158 )
...
* added shell command input to commands prepending shell
* Added shell command and test
2018-04-30 10:59:10 -07:00
Christian Jantz
281c69c6c6
Revert "added shell command input to commands prepending shell"
...
This reverts commit bccc664b19 .
2018-04-28 17:43:42 +02:00
Christian Jantz
35b5f4b34a
Revert "Added shell command and test"
...
This reverts commit ae47a03023 .
2018-04-28 17:43:34 +02:00
Christian Jantz
fd8d4b6170
added test for stopsignal command implementation
2018-04-28 17:41:40 +02:00
Christian Jantz
d73f8c031f
added stopsignal implementation
2018-04-28 17:30:18 +02:00
Christian Jantz
ae47a03023
Added shell command and test
2018-04-28 15:12:04 +02:00
Christian Jantz
bccc664b19
added shell command input to commands prepending shell
2018-04-28 15:02:33 +02:00
Priya Wadhwa
48688df7a6
Fixed merge conflicts, support multistage builds
2018-04-26 16:39:02 -07:00
Priya Wadhwa
904575d0cb
support multi stage builds
2018-04-26 15:40:41 -07:00
dlorenc
cd5b744904
Switch from containers/image to go-containerregistry ( #140 )
...
* Vendor changes for go-containerregistry switch.
* Manual changes for go-containerregistry switch.
The biggest change is refactoring the tarball unpacking.
* Pull more of container-diff out.
* More vendor removals.
* More unit tests.
2018-04-25 19:21:05 -07:00
Priya Wadhwa
946b11b894
fix parent directory
2018-04-25 12:59:18 -07:00
Priya Wadhwa
a211c1ec71
Make sure to snapshot parent directories of specific files for add/copy
2018-04-24 16:22:37 -07:00
Priya Wadhwa
cf713fe0cd
fixed bug in copy
2018-04-23 18:13:27 -07:00
Priya Wadhwa
7dbc7a04a7
Support multi stage builds
2018-04-23 17:25:12 -07:00
dlorenc
844d9ef0d9
Add whiteout handling by switching to a two-phase approach. ( #139 )
...
* Add whiteout handling by switching to a two-phase approach.
Also only handle hardlinks within one layer
* Simplify the run test.
2018-04-23 12:50:21 -07:00
Carlos Sanchez
08ce2a0724
Add support for insecure docker registry ( #131 )
...
* Add support for insecure docker registry
Using --insecure-skip-tls-verify
Fixes #110
* Apply formatting
2018-04-20 10:47:06 -07:00
Priya Wadhwa
be38696c7d
Updated unit tests after refactor
2018-04-19 20:39:29 -07:00
Priya Wadhwa
6054d7e653
Refactor copy and add
...
Refactor copy and add
Add/copy pass integration tests
2018-04-19 20:27:41 -07:00
priyawadhwa
55557ff2e1
Merge pull request #112 from priyawadhwa/maintainer
...
Skip maintainer command
2018-04-18 10:46:17 -07:00
priyawadhwa
1b2d6bf4f6
Merge pull request #114 from r2d4/makefil
...
Org rename
2018-04-17 15:34:34 -07:00
Priya Wadhwa
5f03283a91
Merge branch 'master' of github.com:GoogleCloudPlatform/kaniko into maintainer
2018-04-17 12:33:16 -07:00
Matt Rickard
cff201dee6
org rename from GoogleCloudPlatform to GoogleContainerTools
2018-04-17 11:45:39 -07:00
Cyrille Hemidy
6e5ed87633
Update add.go
...
fix comment
2018-04-17 10:57:03 +02:00
Cyrille Hemidy
3cc63ee941
Update tar_util.go
...
fix comment
2018-04-17 10:56:37 +02:00
Cyrille Hemidy
3796a1026d
Update image.go
...
fix comment
2018-04-17 10:55:55 +02:00
Cyrille Hemidy
a18c8c01e1
Update util.go
...
fix comment
2018-04-17 10:54:11 +02:00
Cyrille Hemidy
84bab8fde2
Update command_util.go
...
fix comment
2018-04-17 10:53:34 +02:00
Cyrille Hemidy
44a97ae53f
Update run.go
...
fix comment
2018-04-17 10:52:35 +02:00
Priya Wadhwa
6548835db5
skip maintainer command
2018-04-16 14:21:37 -07:00
Priya Wadhwa
b47f682c80
Fix 'text file busy' error
2018-04-16 13:40:02 -07:00
Priya Wadhwa
52c5759fc4
create list of build files
2018-04-16 11:08:40 -07:00
Priya Wadhwa
c7bcc673fc
allow snapshot of kaniko certs so kaniko can build kaniko
2018-04-16 10:43:01 -07:00
priyawadhwa
0ddc2115a5
Merge pull request #78 from priyawadhwa/trigger
...
kaniko build trigger
2018-04-16 10:21:21 -07:00
dlorenc
0438539cbc
Set env at command run time instead of in the process. ( #91 )
2018-04-15 18:05:21 -07:00
priyawadhwa
cebb4031b3
copy symlinks ( #90 )
2018-04-14 08:00:20 -07:00
dlorenc
167920c405
Refactor a bit. ( #84 )
...
Move all logic out of cmd/root.go into a package.
2018-04-14 07:59:37 -07:00
dlorenc
da1eab7251
Set a user-agent for registry pushes. ( #87 )
2018-04-13 14:25:58 -07:00
Priya Wadhwa
a8ecbbd365
Check if config fields are nil
2018-04-13 14:00:05 -07:00
Priya Wadhwa
ec510a161b
change imports from k8s-container-builder to kaniko
2018-04-12 15:35:54 -07:00
Priya Wadhwa
954b1382d2
change k8s to kaniko
2018-04-12 15:30:32 -07:00
Priya Wadhwa
50ef6fe9c1
Build trigger for building kaniko executor image
2018-04-12 15:25:40 -07:00
Priya Wadhwa
8d2e646214
Fixed merge conflict
2018-04-12 15:03:09 -07:00
Priya Wadhwa
d38319c416
Add support for scratch images, and integration test
2018-04-12 14:57:33 -07:00
Priya Wadhwa
3f561782a8
Fixed merge conflict, added validation
2018-04-12 10:30:25 -07:00
Priya Wadhwa
cf90bd73d4
Fixed merge conflict
2018-04-11 15:05:12 -07:00
Priya Wadhwa
c10c293f6b
Fixed merge conflict
2018-04-06 12:09:31 -07:00
Sharif Elgamal
ce2b515d49
adding VOLUME command ( #62 )
...
* adding VOLUME command
* proper test project
* general fixes
* fixing project name
* fixing volume unit test
* fixing integration test
* adding tests
* adding util test
* fixing test
* actually create the volume mounted directory
* fix test
2018-04-06 12:02:57 -07:00
Priya Wadhwa
5dc47258a0
Fix merge conflict, change flag to snapshot-mode
2018-04-05 16:07:49 -07:00
Priya Wadhwa
59a5950e9e
onbuild integration test
2018-04-05 09:43:52 -07:00
Priya Wadhwa
27f964957b
Support for onbuild and unit test
2018-04-04 17:06:01 -07:00
Priya Wadhwa
c63a03d123
rename to kaniko
2018-04-04 14:52:13 -07:00
Priya Wadhwa
bd49b459e5
Merged master, fixed merge conflict
2018-04-04 14:38:39 -07:00
Priya Wadhwa
32b067af0c
Merged master, fixed conflict
2018-04-04 14:06:38 -07:00
Priya Wadhwa
bf662d986b
Merge branch 'master', add examples
2018-04-04 10:42:14 -07:00
Priya Wadhwa
74c4a6629d
Unpack context.tar.gz from bucket
2018-04-03 14:58:50 -07:00
Priya Wadhwa
e5542e8893
fixed comment
2018-04-03 10:43:35 -07:00
Priya Wadhwa
fad0d25aec
Add README and update name to kaniko
2018-04-02 14:00:15 -07:00
Priya Wadhwa
aa634e4c5c
Fixed merge conflict from master
2018-04-02 13:05:22 -07:00
sharifelgamal
7ebc313974
Merge branch 'master' of github.com:GoogleCloudPlatform/k8s-container-builder into user-cmd
2018-03-30 13:43:56 -07:00
sharifelgamal
da0231a4d1
adding support of env variable replacement
2018-03-30 10:13:35 -07:00
Priya Wadhwa
687e00e3aa
Fixed merge conflict
2018-03-29 20:50:52 -07:00
sharifelgamal
abc85905c0
adding necessary functions
2018-03-29 12:54:00 -07:00
sharifelgamal
b315cf1049
adding user command to switch
2018-03-29 11:54:51 -07:00
sharifelgamal
bc78e2b838
adding USER command
2018-03-29 11:53:31 -07:00
Priya Wadhwa
89400b7410
Add command with unit tests
2018-03-28 13:34:00 -07:00
priyawadhwa
976afd1992
Merge pull request #47 from priyawadhwa/env-replacement
...
Support environment replacement in expose/copy/env
2018-03-28 13:14:56 -07:00
Priya Wadhwa
1b3b8accab
Fixed merge conflict
2018-03-28 12:47:19 -07:00
Priya Wadhwa
e6eb5d1abf
Add hash function which only considers mtime when snapshotting
2018-03-27 17:43:35 -07:00
Priya Wadhwa
ad17811c39
Update workdir to use default escape token
2018-03-27 15:15:55 -07:00
Priya Wadhwa
416c58e956
Merge branch 'env-replacement' of github.com:priyawadhwa/k8s-container-builder into workdir
2018-03-27 15:14:59 -07:00
Priya Wadhwa
e885d6a5e6
Use default token for env replacement parsing
2018-03-27 09:51:36 -07:00
Priya Wadhwa
6eced4b12d
Merge branch 'master' of github.com:GoogleCloudPlatform/k8s-container-builder into env-replacement
2018-03-27 09:44:59 -07:00
Priya Wadhwa
b64f23b078
Use default token for parsing
2018-03-27 09:44:51 -07:00
Priya Wadhwa
54a53489b2
Added comment to unit test
2018-03-26 16:56:28 -07:00
Priya Wadhwa
316e2847a7
Fixed merge conflict
2018-03-26 15:51:00 -07:00
Priya Wadhwa
41aed3948b
Merged master, fixed merge confict
2018-03-26 14:57:57 -07:00
Sharif Elgamal
f38dd2d85b
Merge pull request #44 from sharifelgamal/label-cmd
...
adding LABEL command
2018-03-26 14:28:56 -07:00
sharifelgamal
96b0b12bc7
adding extra test case
2018-03-26 14:13:20 -07:00
Priya Wadhwa
a45b8a3621
Add integration tests for unpacking from GCS bucket
2018-03-26 14:10:38 -07:00
Priya Wadhwa
85bbb6edff
Unpack tar from GCS bucket
2018-03-26 13:59:56 -07:00
sharifelgamal
4551bd0dc0
adding test for escaped words
2018-03-26 11:45:59 -07:00
sharifelgamal
986074eb45
unescaping values when appropriate
2018-03-26 11:38:43 -07:00
Priya Wadhwa
0787a93372
Workdir command and unit tests
2018-03-26 11:37:50 -07:00
Priya Wadhwa
f6139f249a
Merge branch 'master' of github.com:GoogleCloudPlatform/k8s-container-builder into env-replacement
2018-03-26 10:50:23 -07:00
Priya Wadhwa
dbb0774778
Environment replacement
2018-03-21 15:01:21 -07:00
Priya Wadhwa
f56b3e9542
Environment replacement
2018-03-21 13:37:00 -07:00
sharifelgamal
f352583bc1
boilerplate
2018-03-21 11:45:41 -07:00
sharifelgamal
ba77ba0822
adding LABEL command
2018-03-21 11:34:37 -07:00
Priya Wadhwa
cf24231121
WIP
2018-03-20 17:15:09 -07:00
Priya Wadhwa
58e70d8b77
Environment replacement
2018-03-20 15:56:31 -07:00
Priya Wadhwa
8d85fe91f3
resolve merge conflict
2018-03-20 15:17:08 -07:00
sharifelgamal
7bc750d793
add check for valid protocol
2018-03-20 14:27:58 -07:00
Priya Wadhwa
cc0c672697
Add support for dest = '.' and additional DestinationFilepath test
2018-03-20 14:10:13 -07:00
Priya Wadhwa
bf47ea928b
Integration tests for entrypoint
2018-03-20 13:05:20 -07:00
Priya Wadhwa
d49c7c5ed1
Entrypoint command and unit tests
2018-03-20 12:58:38 -07:00
sharifelgamal
58ce938778
things are working now
2018-03-20 10:56:19 -07:00
Priya Wadhwa
5da78632a1
CMD command and unit tests
2018-03-20 10:40:45 -07:00
sharifelgamal
5578e683a1
Merge branch 'master' of github.com:GoogleCloudPlatform/k8s-container-builder into expose-cmd
2018-03-19 17:26:30 -07:00
sharifelgamal
288ac0b93b
adding EXPOSE command
2018-03-19 17:25:12 -07:00
Priya Wadhwa
b3ec877b60
Use io.Copy when creating files
2018-03-19 16:37:12 -07:00
Priya Wadhwa
5ba9510ee8
Fixed merge conflict
2018-03-19 11:08:07 -07:00
Priya Wadhwa
070b0517d5
Get escape token by parsing ENV command
2018-03-19 10:42:40 -07:00
Priya Wadhwa
f4e9eeb15a
Modified fs util functions
2018-03-19 09:47:51 -07:00
Priya Wadhwa
de8cc1a285
Fixed check srcs function and create file with correct permissions
2018-03-16 14:11:06 -07:00
Priya Wadhwa
af6a074fd6
Set escape token in separate function
2018-03-16 13:35:00 -07:00
Priya Wadhwa
f33e507018
Replaced shlex with dockerfile/shell package
2018-03-16 12:20:50 -07:00
Priya Wadhwa
5ebf156d94
Fixed relative filepath and unit test
2018-03-15 13:47:40 -07:00
Priya Wadhwa
21a9207428
Copy command and unit tests
2018-03-14 17:06:46 -07:00
Priya Wadhwa
2d65be548a
Added env unit test, updated env integration test, fixed env
2018-03-12 15:18:15 -07:00
Priya Wadhwa
ab0fc3802e
Add ENV command
2018-03-09 13:47:18 -08:00
Priya Wadhwa
27b09f28be
Add config as point to ExecuteCommand, fix snapshots
2018-03-09 11:30:35 -08:00
Priya Wadhwa
75e7e47b76
Added integration test, minor changes to files
2018-03-08 11:49:56 -08:00
Priya Wadhwa
04cca43ce4
Merged master and fixed merge conflicts
2018-03-08 10:18:04 -08:00
Priya Wadhwa
04b9e4bcdf
Use mutable source directly
2018-03-07 16:22:59 -08:00
Priya Wadhwa
98826ef951
Changed /work-dir to /kbuild
2018-03-07 15:38:22 -08:00
Priya Wadhwa
cefb4448b1
Integration tests for run cmd
2018-03-07 15:34:56 -08:00
Priya Wadhwa
6668fa0d6f
Update add to tar to correctly handle hard links
2018-03-07 15:34:14 -08:00
Priya Wadhwa
3195b84c25
Fixed integration tests, changed directory to /work-dir
2018-03-06 15:25:04 -08:00
Priya Wadhwa
448e9dc3ce
Removed panic and added logging
2018-03-02 13:39:51 -08:00
Priya Wadhwa
e7b8912ec6
Updated AppendLayer to include author
2018-03-01 13:10:44 -08:00
Priya Wadhwa
142ec6aa98
Fixed image
2018-02-28 14:53:33 -08:00
Priya Wadhwa
3ce3dca56d
Image package to append layers and push final image
2018-02-28 12:05:42 -08:00
Priya Wadhwa
43bad54292
Added snapshot package and tests
2018-02-28 11:05:57 -08:00
Priya Wadhwa
f68fa5fa97
Changed /work-dir and /dockerfile to /workspace
2018-02-28 09:44:22 -08:00
Priya Wadhwa
9544c0bf53
Added logging statements
2018-02-21 11:30:02 -08:00
Priya Wadhwa
093dfd04df
Unpack filesystem and whitelist from /proc/self/mountinfo
2018-02-21 11:02:30 -08:00
Priya Wadhwa
c284f25441
Added CLI flags and set logs
2018-02-20 20:50:03 -08:00