From 9d134a40f24c0c47ae78ae64a5686fdba0a92ff1 Mon Sep 17 00:00:00 2001 From: Nandor Kracser Date: Sat, 1 Jun 2019 14:09:24 +0200 Subject: [PATCH] update kaniko and example to use caching --- Dockerfile | 2 +- README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d09403b..1f8065a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM gcr.io/kaniko-project/executor:debug-v0.7.0 +FROM gcr.io/kaniko-project/executor:debug-v0.9.0 ENV HOME /root ENV USER root diff --git a/README.md b/README.md index f4b1b3c..66883ba 100644 --- a/README.md +++ b/README.md @@ -54,12 +54,12 @@ docker build -t banzaicloud/drone-kaniko . Warm up the alpine image to the cache: ```bash -docker run -v $PWD:/cache gcr.io/kaniko-project/warmer:latest --image=alpine:3.8 +docker run -v $PWD:/cache gcr.io/kaniko-project/warmer:latest --verbosity=debug --image=alpine:3.8 ``` -Run the builder on the host network to be able to access the registry: +Run the builder on the host network to be able to access the registry and the local disk cache: ```bash -docker run --net=host -it --rm -w /src -v $PWD:/cache -v $PWD:/src -e DOCKER_USERNAME=${DOCKER_USERNAME} -e DOCKER_PASSWORD=${DOCKER_PASSWORD} -e PLUGIN_REPO=banzaicloud/drone-kaniko-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test banzaicloud/drone-kaniko +docker run --net=host -it --rm -w /src -v $PWD:/cache -v $PWD:/src -e PLUGIN_USERNAME=${DOCKER_USERNAME} -e PLUGIN_PASSWORD=${DOCKER_PASSWORD} -e PLUGIN_REPO=banzaicloud/drone-kaniko-test -e PLUGIN_TAGS=test -e PLUGIN_DOCKERFILE=Dockerfile.test -e PLUGIN_CACHE=true banzaicloud/drone-kaniko ```