From 525c6bcad6528cf192a8e3c68469db277e2fda10 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Sat, 20 Feb 2021 13:14:47 +0000 Subject: [PATCH] chore: change base image to debian add mount --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e7b6e6ea..341dc672 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,11 +12,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM centos:latest +FROM k8s.gcr.io/build-image/debian-base-amd64:v2.1.3 # Copy nfsplugin from build _output directory COPY bin/nfsplugin /nfsplugin -RUN yum -y install nfs-utils epel-release jq && yum clean all +# this is a workaround to install nfs-common & nfs-kernel-server and don't quit with error +# https://github.com/kubernetes-sigs/blob-csi-driver/issues/214#issuecomment-781602430 +RUN apt update && apt install ca-certificates mount nfs-common nfs-kernel-server -y || true ENTRYPOINT ["/nfsplugin"]