Christie Wilson
5f9fb2cb8d
Fix remote URL test ( #237 )
...
When this test was originally created, an HTTP get to
`https://url.com/something/not/real ` probably failed, but now it
will return a `503`, i.e. the `http.Get` call will succeed.
This test will now use a URL which should not reasonable ever
succeed (famous last words). Alternatively we could use dependency
injection and mock `http.Get` but it doesn't seem worth it.
This commit also updates the test to use `Run` to run each test
in the table test as a separate test so we can get a clear indication
which cases fail and which succeed.
2018-07-17 17:21:51 -07:00
priyawadhwa
31b7cd3732
Fix bug in copy command by refactoring whitelist checks ( #231 )
...
* Fixed bug
* WIP
* fix unit tests
2018-07-10 08:23:35 -07:00
Christian Jantz
65d7b0a9aa
Feature/contextsources ( #195 )
...
* added switch to extract different sources as build context
* first rough implementation of aws s3
* added buildcontext package and interface
* added GetBuildContext func to buildcontext.go
added fallback to gcs
renamed GC struct to GCS
* improved the default behavior of build context retrieval
* renamed gc:// to gs:// in order to follow common standards
* renamed struct File to Dir and some cleanup work
* moved context.tar suffix to the buildcontext processors where it is needed
* added buildcontext retrieval as struct variable
added fallback if prefix in bucket specifier is present
* cleanup if structures
* added prefix to s3
* WIP
* Fixed build context bugs
* refactored build context
2018-07-06 06:24:50 -07:00
xanonid
d411bd6daf
Track file ownership and use file ownership from base images ( #209 )
...
* Track file ownership and use file ownership from base images
* Fix fs_util_test - use current uid/gid.
2018-06-22 15:11:02 -07:00
Sharif Elgamal
a7c82cf6f6
adding reproducible flag ( #205 )
...
* adding reproducible test
* newer version of go-containerregistry
* new ImageOptions
* switch reproducible flag to default to false
* small fixes
* update dep
2018-06-22 12:00:44 -07:00
Priya Wadhwa
8453a5bde0
Merge branch 'master' of github.com:GoogleContainerTools/kaniko into snapshot
2018-06-21 14:38:18 -07:00
Priya Wadhwa
54282e3e8c
Fix bug in snapshotting
2018-06-21 14:07:59 -07:00
Priya Wadhwa
89c9f15bde
Add --single-snapshot flag to snapshot once after the build
2018-06-13 11:22:12 -07:00
Priya Wadhwa
44d7266058
Resolve env replacement for FROM command
2018-06-04 11:51:33 -07:00
Jon Johnson
1bb0df22b3
Fix MountPaths breakage
2018-06-03 01:04:56 +00:00
Jon Johnson
8b0a1a7689
dep update go-containerregistry
2018-06-03 00:59:34 +00:00
Sharif Elgamal
5e6b60f46e
adding metadata tests back to integration tests ( #185 )
...
* adding metadata tests back to integration tests and fixing resulting bugs
* fix onbuild and default env
* removing old test files
* adding the ArgsEscaped boolean on CMD commands
* fix onbuild test
* ignore failing test until container-diff is fixed
* code comments
* adding todo to remove uncomment failing test
2018-05-24 11:28:32 -07:00
priyawadhwa
0881b7c320
Merge pull request #193 from priyawadhwa/bug
...
Resolve environment replacement for arg
2018-05-21 18:39:33 -07:00
Priya Wadhwa
d6bb88f924
Resolve environment replacement for arg
2018-05-21 14:51:00 -07:00
Priya Wadhwa
e3f4dc479d
Move all files in executor image to /kaniko directory
2018-05-21 14:08:06 -07:00
Priya Wadhwa
577f448993
Make sure necessary files aren't deleted for multistage builds
2018-05-21 11:20:32 -07:00
priyawadhwa
beb00f0bdb
Merge pull request #184 from jesusofsuburbia/master
...
Allow multiple destinations
2018-05-17 11:41:34 -07:00
Maximilian Schrupp
b6cb74b2be
include stderr of RUN commands in log output ( #187 )
2018-05-17 07:47:59 -07:00
jesusofsuburb1a
4c190a7037
allow multiple destinations, error handling for each push
2018-05-17 09:35:41 +02:00
dlorenc
347d835781
Add a mode to save to a tarball instead of pushing. ( #178 )
2018-05-15 15:32:27 -07:00
Sharif Elgamal
f8aa88b119
Integration test refactoring ( #126 )
...
* integration test refactoring
* config file cleanup
* more test refactoring
* remove debug file
* moving around more files
* fixing up integration tests
* integration tests work
* some housekeeping
* fixing tests
* addressing comments
* debugging
* debugging
* actual debugging
* skip integration tests for travis
* install container-diff before integration tests
* syntax
* make test failures less noisy
* fixing tests
* hopefully fixing CI?
* fixes
* more fixes
* let's actually fix CI
* more testing
* testing
* proper auth
* typos
* adding support for args in integration tests
* formatting
* formatting
* adding support for testing bucket context
* adding bucket test dockerfile
* addressing comments
* syntax
2018-05-15 13:42:35 -07:00
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