Commit Graph

120 Commits

Author SHA1 Message Date
Tejal Desai 2214da37e2
Update Dockerfile_debug 2020-06-04 12:11:15 -07:00
Tejal Desai c0f699d3f1
removed ununsed stage 1 2020-06-04 11:59:41 -07:00
Tejal Desai 813fbeb634
Merge branch 'master' into useAmd64 2020-06-04 11:55:39 -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
Thomas Strömberg 885c4daba7
Merge pull request #1251 from yw-liu/master
Add /etc/nsswitch.conf for /etc/hosts name resolution
2020-05-20 09:03:33 -07:00
yw-liu c91d46e75f add nsswitch.conf 2020-05-20 21:32:43 +08:00
Tejal Desai ba0cb81823
Update Dockerfile_debug 2020-05-20 01:00:55 -07:00
Chris Sng ec770e207d
Update docker-credentials-gcr to support auth with GCP Artifact Registry 2020-05-08 12:44:44 +09:00
Tejal Desai 254ba7be68 add 64 busybox 2020-05-07 19:31:25 -07:00
Daniel Marks f5a811779b Fixed directory creation - missed -p option. 2020-05-05 15:24:29 +02:00
Daniel Marks 9e7f8414d3 Moved directory creation to build container. 2020-05-05 12:11:29 +02:00
Daniel Marks 5b3afb447b Readded the /kaniko/.docker directory
This directory was implicitly removed with commit
8a020010b7 and breaks several peoples
builds as some examples and documentation expect the directory to exist.
2020-05-05 11:45:43 +02: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
Tejal Desai d1cf3afdce
Merge pull request #1121 from carlossg/acr-help
Use the correct name for acr helper
2020-03-17 16:06:12 -07:00
Tejal Desai 0c422235f7
Merge pull request #1098 from antechrestos/feature/migrate_to_go_1.14
Migrate to golang 1.14
2020-03-17 16:02:40 -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
Ben Einaudi 8b8be5c418 Migrate to golang 1.14
* Upgrade go.mod file

* Upgrade travis file

* Run rm -rf vendor && go mod tidy && go mod vendor to upgrade vendor/modules.txt according to golang 1.14

* Upgrade golangci-lint version
2020-03-15 10:20:43 +01:00
Sam Stoelinga fa3318a273 Make cloudbuild.yaml re-usable for anyone
Cloud build is also really useful for devs that have limited resources
to build Kaniko locally. This commit makes adds parameters to cloudbuild
to make it easy to adjust to your own project.
2020-03-14 18:05:00 -07:00
Carlos Sanchez 7d345f13d2 Use the correct name for acr helper
Add it to debug and warmer images too
2020-03-10 18:15:17 +01:00
Ben Einaudi b73c2c10c8 Allow user to provide registry certificate
Fixes #1100
Fixes #1101
2020-03-08 18:17:50 +01:00
Tejal Desai e075c0a6c8 Remove debug tag being built for every push to master 2020-01-27 12:39:31 -08:00
Anthony Davies ed22afc19b Rebase fix for PR #646
I needed this for my arm64 k8s cluster. I have zero Go experience but
enough experience with other things to fix the rebase (I think!). This
patch is working fine on my cluster.
2020-01-20 13:43:45 +11:00
Stijn De Haes 3fa8f686db Support for private registries in the cache warmer
Closes #503

Signed-off-by: Stijn De Haes <stijndehaes@gmail.com>
2020-01-15 15:35:42 +01:00
Remko van Hunen c9d09109bc
Update Dockerfile 2020-01-03 10:44:13 +01:00
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