Created
June 8, 2018 16:56
-
-
Save PsyDebug/2ae97aba82271b35fdd44491f3a3b208 to your computer and use it in GitHub Desktop.
Dockerfile for rbd k8s controller (centos)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos | |
ARG KUBERNETES_VERSION=v1.10.4 | |
ENV CENTOS_FRONTEND=noninteractive \ | |
container=docker \ | |
KUBERNETES_DOWNLOAD_ROOT=https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/amd64 \ | |
KUBERNETES_COMPONENT=kube-controller-manager | |
COPY ceph.repo /etc/yum.repos.d/ceph.repo | |
RUN set -x \ | |
&& yum install -y epel-release \ | |
&& yum install -y \ | |
ceph-common \ | |
curl \ | |
&& yum clean all \ | |
&& rm -rf /var/cache/yum \ | |
&& curl -L ${KUBERNETES_DOWNLOAD_ROOT}/${KUBERNETES_COMPONENT} -o /usr/bin/${KUBERNETES_COMPONENT} \ | |
&& chmod +x /usr/bin/${KUBERNETES_COMPONENT} \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment