Commit Graph

45 Commits

Author SHA1 Message Date
slmagus c0b7ef33d5 revert distroless repo from testing fork 2019-10-16 12:03:42 -04:00
slmagus 297fd9743b use the binary-bin directory as bazel-genfiles does not exist 2019-10-16 11:55:41 -04:00
Tejal Desai bbc1b71105
Merge pull request #648 from Dopingus/UpdateGolang112
Update base image to golang:1.12
2019-10-04 01:43:51 -07:00
Thao-Nguyen Do 75e6c9b66c
Update golang to 1.12 in warmer image 2019-04-29 09:17:19 +02:00
Thao-Nguyen Do e7fd0d4db5
Update golang to 1.12 in debug image 2019-04-29 09:16:48 +02:00
Thao-Nguyen Do 0183405c11
Update base image for main image to golang:1.12 2019-04-29 09:16:13 +02:00
Warren Seymour 319bfde932 Include warmer in debug image
When using Kaniko with certain build systems, such as GitLab CI, it is necessary to use the 'debug' image and override the entrypoint, so that an arbitrary build script can be executed within the container.  Unfortunately, the 'warmer' binary is not available in the 'debug' image, making it impossible to perform a base image cache warmup using such build systems.

This patch addresses this by ensuring that the 'out/warmer' target is made in the initial stage, and that all 'out' files are copied to '/kaniko' in the final stage.
2019-03-15 10:20:13 +00:00
dlorenc 9f65174cb8
Generate the config.json from gcloud rather than relying on a hardcoded one. (#551)
marketplace.gcr.io now requires auth, but our credential helper doesn't know that.
2019-02-04 16:53:59 -06:00
dlorenc 9d10516698
Reorder the Dockerfile for faster iterations. (#515) 2019-01-09 10:39:41 -08:00
dlorenc 859e63c991
Change the CI cloudbuild to stop tagging latest. (#505)
Latest should only be changed during releases.
2019-01-03 15:04:04 -06:00
Sharif Elgamal ede93786a1
fix releasing the cache warmer (#418) 2018-10-29 12:02:40 -07:00
Sharif Elgamal 1639d1d71c
adding the cache warmer to the release process (#412) 2018-10-25 16:42:34 -07:00
Sharif Elgamal effac9dfc3
Persistent volume caching for base images (#383)
* comments

* initial commit for persisent volume caching

* cache warmer works

* general cleanup

* adding some debugging

* adding missing files

* Fixing up cache retrieval and cleanup

* fix tests

* removing auth since we only cache public images

* simplifying the caching logic

* fixing logic

* adding volume cache to integration tests. remove auth from cache warmer image.

* add building warmer to integration-test

* move sample yaml files to examples dir

* small test fix
2018-10-11 13:38:05 -07:00
Vincent Behar d10e3f5b74
Whitelist /busybox in the debug image
In the debug image, declare /busybox as a volume so that it is automatically whitelisted, because we don't want to delete it when building multi-stages images.

FYI this is required when using Jenkins, because we need to use the debug kaniko image to be able to start the container "doing nothing" (with /busybox/cat) before building (by executing /kaniko/executor directly inside the container)
See https://issues.jenkins-ci.org/browse/JENKINS-52576
2018-09-28 10:55:08 +02:00
Priya Wadhwa ef3f64bdf6 Build each kaniko image separately
I was seeing an error with our cloudbuild triggers where the tagged
:latest version of image wasn't the same as the :commit version, even
though it was created via 'docker tag image:commit image:latest'.

I'm not sure why this would be happening, but for now building each
image separately should hopefully fix this error.
2018-08-28 10:59:29 -07:00
priyawadhwa 93d139c5fe
Tag latest in cloudbuild.yaml (#287) 2018-08-13 10:20:44 -07:00
priyawadhwa 52e9863810
fix add command bug when adding remote URLs (#277) 2018-08-07 17:10:27 -07:00
priyawadhwa 5db5a7b52e
Release v0.3.0 kaniko (#263) 2018-07-31 11:56:00 -07:00
dlorenc cc447088c0
Set a workdir so paths can be relative to /workspace. 2018-06-26 10:54:04 -07:00
Nicolas Byl c17b2d5533 fix build of debug image 2018-06-18 23:35:15 +02:00
Priya Wadhwa e3f4dc479d
Move all files in executor image to /kaniko directory 2018-05-21 14:08:06 -07:00
Priya Wadhwa 92213bac8d
Add cloudbuild yaml for tagged releases 2018-05-16 16:38:43 -07:00
Priya Wadhwa f69be3548a
Add busybox to path for debug image 2018-05-11 11:27:13 -07:00
Priya Wadhwa 4deb37577c
Add busybox shell in dockerfile 2018-05-10 12:55:34 -07:00
Priya Wadhwa bb90bdef2f
Merge branch 'master' of github.com:GoogleContainerTools/kaniko into busybox 2018-05-10 11:18:27 -07:00
Priya Wadhwa 3da6215db4
Create debug image with busybox shell 2018-05-07 15:18:28 -07:00
Priya Wadhwa 5f547b163b
Merge branch 'master' of github.com:GoogleContainerTools/kaniko into aws 2018-05-07 09:24:00 -07:00
Priya Wadhwa 26b8e01697 Remove workdir 2018-05-03 11:26:32 -04:00
Priya Wadhwa 8d3731a984 Add credential helper and docs for pushing to Amazon ECR 2018-05-02 17:15:53 -04:00
Priya Wadhwa c2516b4dcf Use official version of docker-credential-gcr 2018-05-02 13:53:28 -04:00
Priya Wadhwa b9435943ec
clean up makefile 2018-04-27 14:58:28 -07:00
Priya Wadhwa 3705de2298
Switch to multi-stage dockerfile for building kaniko 2018-04-27 14:42:59 -07:00
Priya Wadhwa ebdf0eafc3
Build kaniko with docker 2018-04-26 14:39:22 -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 0343e6b50b
Release executor based off debian for debugging 2018-04-25 15:21:42 -07:00
Matt Rickard cff201dee6 org rename from GoogleCloudPlatform to GoogleContainerTools 2018-04-17 11:45:39 -07:00
priyawadhwa 0ddc2115a5
Merge pull request #78 from priyawadhwa/trigger
kaniko build trigger
2018-04-16 10:21:21 -07:00
Matt Rickard 2ff7a6556a dockerfile: add custom ssl certs dir (#88)
The certs should be added to the whitelisted kaniko directory so that
an image build does not override them and possibly affect the push to
the registry.
2018-04-15 13:40:17 -07:00
Priya Wadhwa ee5ca29866
Merge branch 'master' of github.com:GoogleCloudPlatform/kaniko into trigger 2018-04-12 15:57:22 -07:00
Priya Wadhwa 50ef6fe9c1
Build trigger for building kaniko executor image 2018-04-12 15:25:40 -07:00
Priya Wadhwa 4e2bf40736
Merged master 2018-04-04 13:35:20 -07:00
Priya Wadhwa bf662d986b
Merge branch 'master', add examples 2018-04-04 10:42:14 -07:00
Priya Wadhwa fad0d25aec
Add README and update name to kaniko 2018-04-02 14:00:15 -07:00
Priya Wadhwa 85183aadee
Add executable as entrypoint to image 2018-04-02 11:20:10 -07:00
dlorenc d9c31044b9
Reorganize Dockerfile, add a make target for images. (#48) 2018-03-26 09:53:41 -07:00