Skip to content

Instantly share code, notes, and snippets.

@PsyDebug
Created June 8, 2018 16:56
Show Gist options
  • Save PsyDebug/2ae97aba82271b35fdd44491f3a3b208 to your computer and use it in GitHub Desktop.
Save PsyDebug/2ae97aba82271b35fdd44491f3a3b208 to your computer and use it in GitHub Desktop.
Dockerfile for rbd k8s controller (centos)
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