From 58f87a9938ca9ef06faf1ce712f3c485071dd0ce Mon Sep 17 00:00:00 2001 From: Artem Zatsarynnyi Date: Wed, 23 Oct 2019 19:11:07 +0300 Subject: [PATCH] Enable the images build with Buildah in Kubernetes Plugin sidecar Signed-off-by: Artem Zatsarynnyi --- .../Dockerfile | 2 ++ .../etc/storage.conf | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 dockerfiles/remote-plugin-kubernetes-tooling-1.0.4/etc/storage.conf diff --git a/dockerfiles/remote-plugin-kubernetes-tooling-1.0.4/Dockerfile b/dockerfiles/remote-plugin-kubernetes-tooling-1.0.4/Dockerfile index 372f98095..4517db000 100644 --- a/dockerfiles/remote-plugin-kubernetes-tooling-1.0.4/Dockerfile +++ b/dockerfiles/remote-plugin-kubernetes-tooling-1.0.4/Dockerfile @@ -15,6 +15,8 @@ ENV KUBECTL_VERSION v1.16.1 ENV HELM_VERSION v2.14.3 ENV HOME=/home/theia +ADD etc/storage.conf $HOME/.config/containers/storage.conf + RUN curl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \ chmod +x /usr/local/bin/kubectl && \ curl -o- -L https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar xvz -C /usr/local/bin --strip 1 && \ diff --git a/dockerfiles/remote-plugin-kubernetes-tooling-1.0.4/etc/storage.conf b/dockerfiles/remote-plugin-kubernetes-tooling-1.0.4/etc/storage.conf new file mode 100644 index 000000000..6a6ce018d --- /dev/null +++ b/dockerfiles/remote-plugin-kubernetes-tooling-1.0.4/etc/storage.conf @@ -0,0 +1,30 @@ +[storage] + driver = "overlay" + runroot = "/var/tmp/theia" + graphroot = "/home/theia/.local/share/containers/storage" + [storage.options] + size = "" + remap-uids = "" + remap-gids = "" + ignore_chown_errors = "true" + remap-user = "" + remap-group = "" + ostree_repo = "" + skip_mount_home = "" + mount_program = "/usr/bin/fuse-overlayfs" + mountopt = "" + [storage.options.thinpool] + autoextend_percent = "" + autoextend_threshold = "" + basesize = "" + blocksize = "" + directlvm_device = "" + directlvm_device_force = "" + fs = "" + log_level = "" + min_free_space = "" + mkfsarg = "" + mountopt = "" + use_deferred_deletion = "" + use_deferred_removal = "" + xfs_nospace_max_retries = "" \ No newline at end of file