Commit Graph

27 Commits

Author SHA1 Message Date
yw-liu c91d46e75f add nsswitch.conf 2020-05-20 21:32:43 +08: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
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
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
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
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 e7fd0d4db5
Update golang to 1.12 in debug image 2019-04-29 09:16:48 +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
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
priyawadhwa 52e9863810
fix add command bug when adding remote URLs (#277) 2018-08-07 17:10:27 -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 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 3da6215db4
Create debug image with busybox shell 2018-05-07 15:18:28 -07:00
Priya Wadhwa ebdf0eafc3
Build kaniko with docker 2018-04-26 14:39:22 -07:00
Priya Wadhwa 0343e6b50b
Release executor based off debian for debugging 2018-04-25 15:21:42 -07:00