From b2459574eefc40cf8af52f29a5eb23d529fafbdc Mon Sep 17 00:00:00 2001 From: Huamin Chen Date: Tue, 20 Nov 2018 14:45:15 +0000 Subject: [PATCH] switch to centos base image --- deploy/cephfs/docker/Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/deploy/cephfs/docker/Dockerfile b/deploy/cephfs/docker/Dockerfile index 195e422e2..cdb7c3c16 100644 --- a/deploy/cephfs/docker/Dockerfile +++ b/deploy/cephfs/docker/Dockerfile @@ -1,14 +1,11 @@ -FROM ubuntu:16.04 +FROM centos:7 LABEL maintainers="Kubernetes Authors" LABEL description="CephFS CSI Plugin" ENV CEPH_VERSION "mimic" - -RUN apt-get update && apt-get install -y wget && \ - wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add - && \ - echo "deb http://download.ceph.com/debian-$CEPH_VERSION/ xenial main" | tee /etc/apt/sources.list.d/ceph-$CEPH_VERSION.list && \ - apt-get update && apt-get install -y kmod ceph-common ceph-fuse attr --no-install-recommends && \ - rm -rf /var/lib/apt/lists/* +RUN yum install -y centos-release-ceph && \ + yum install -y kmod ceph-common ceph-fuse attr && \ + yum clean all COPY cephfsplugin /cephfsplugin