rename to kaniko

This commit is contained in:
Priya Wadhwa 2018-04-04 14:40:21 -07:00
parent bd49b459e5
commit c63a03d123
No known key found for this signature in database
GPG Key ID: 0D0DAFD8F7AA73AE
5 changed files with 9 additions and 10 deletions

View File

@ -3,7 +3,6 @@
kaniko is a tool to build unpriviliged container images from a Dockerfile. It doesn't depend on a Docker daemon, which enables building container images in environments that can't easily or securely run a Docker daemon, such as a standard Kubernetes cluster.
The majority of Dockerfile commands can be executed with kaniko, but we're still working on supporting the following commands:
* ADD
* VOLUME
* SHELL
* HEALTHCHECK

View File

@ -1,7 +1,7 @@
[
{
"Image1": "gcr.io/kbuild-test/docker-test-add:latest",
"Image2": "gcr.io/kbuild-test/kbuild-test-add:latest",
"Image1": "gcr.io/kaniko-test/docker-test-add:latest",
"Image2": "gcr.io/kaniko-test/kaniko-test-add:latest",
"DiffType": "File",
"Diff": {
"Adds": null,

View File

@ -1,7 +1,7 @@
[
{
"Image1": "gcr.io/kbuild-test/docker-test-bucket-buildcontext:latest",
"Image2": "gcr.io/kbuild-test/kbuild-test-bucket-buildcontext:latest",
"Image1": "gcr.io/kaniko-test/docker-test-bucket-buildcontext:latest",
"Image2": "gcr.io/kaniko-test/kaniko-test-bucket-buildcontext:latest",
"DiffType": "File",
"Diff": {
"Adds": null,

View File

@ -26,8 +26,8 @@ const (
// WorkspaceDir is the path to the workspace directory
WorkspaceDir = "/workspace"
//KbuildDir is the path to the kbuild directory
KbuildDir = "/kbuild"
//KanikoDir is the path to the Kaniko directory
KanikoDir = "/kaniko"
WhitelistPath = "/proc/self/mountinfo"

View File

@ -25,7 +25,7 @@ import (
"path/filepath"
)
// UnpackTarFromGCSBucket unpacks the kbuild.tar file in the given bucket to the given directory
// UnpackTarFromGCSBucket unpacks the context.tar.gz file in the given bucket to the given directory
func UnpackTarFromGCSBucket(bucketName, directory string) error {
// Get the tar from the bucket
tarPath, err := getTarFromBucket(bucketName, directory)
@ -41,7 +41,7 @@ func UnpackTarFromGCSBucket(bucketName, directory string) error {
return os.Remove(tarPath)
}
// getTarFromBucket gets kbuild.tar from the GCS bucket and saves it to the filesystem
// getTarFromBucket gets context.tar.gz from the GCS bucket and saves it to the filesystem
// It returns the path to the tar file
func getTarFromBucket(bucketName, directory string) (string, error) {
ctx := context.Background()
@ -50,7 +50,7 @@ func getTarFromBucket(bucketName, directory string) (string, error) {
return "", err
}
bucket := client.Bucket(bucketName)
// Get the tarfile kbuild.tar from the GCS bucket, and save it to a tar object
// Get the tarfile context.tar.gz from the GCS bucket, and save it to a tar object
reader, err := bucket.Object(constants.ContextTar).NewReader(ctx)
if err != nil {
return "", err