From 2cdcef74b33b1c48866bc7191b0880eb8056eced Mon Sep 17 00:00:00 2001 From: Marcos Lilljedahl Date: Sun, 15 Apr 2018 18:16:37 -0300 Subject: [PATCH] Add git and docker-compose Fixes https://github.com/play-with-docker/play-with-kubernetes.github.io/issues/10 --- dockerfiles/k8s/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dockerfiles/k8s/Dockerfile b/dockerfiles/k8s/Dockerfile index 3e7d23b..0d7090d 100644 --- a/dockerfiles/k8s/Dockerfile +++ b/dockerfiles/k8s/Dockerfile @@ -8,12 +8,14 @@ COPY ./kubernetes.repo /etc/yum.repos.d/ RUN yum install -y kubectl-1.8.11-0 kubeadm-1.8.11-0 \ && mv -f /etc/systemd/system/kubelet.service.d/10-kubeadm.conf /etc/systemd/system/kubelet.service \ && yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo \ - && yum install -y docker-ce \ + && yum install -y docker-ce git \ && sed -i -e '4d;5d;8d' /lib/systemd/system/docker.service \ && yum clean all -RUN curl -Lf -o jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 \ - && chmod +x ./jq && mv jq /usr/bin +RUN curl -Lf -o /usr/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 \ + && curl -Lf -o /usr/bin/docker-compose https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) \ + && chmod +x /usr/bin/jq /usr/bin/docker-compose + COPY ./kube* /etc/systemd/system/ COPY ./wrapkubeadm.sh /usr/local/bin/kubeadm