Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Commit

Permalink
Install minikube in the Kubernetes tooling sidecar (#21)
Browse files Browse the repository at this point in the history
Closes eclipse-che/che#17501

Signed-off-by: Eric Williams <[email protected]>
  • Loading branch information
ericwill authored Aug 10, 2020
1 parent f142dd2 commit aabd74f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@

FROM quay.io/eclipse/che-container-tools:1.0.0-8caea0f

ENV MINIKUBE_VERSION=v1.12.1

ADD etc/storage.conf ${HOME}/.config/containers/storage.conf
ADD etc/containers.conf ${HOME}/.config/containers/containers.conf
ADD etc/subuid /etc/subuid
ADD etc/subgid /etc/subgid

# buildah login requires writing to /run
RUN chgrp -R 0 /run && chmod -R g+rwX /run && \
RUN export ARCH_MINIKUBE="$(uname -m)" && if [[ ${ARCH_MINIKUBE} == "x86_64" ]]; then export ARCH_MINIKUBE="amd64"; elif [[ ${ARCH_MINIKUBE} == "aarch64" ]]; \
then export ARCH_MINIKUBE="arm64"; fi && \
curl https://storage.googleapis.com/minikube/releases/${MINIKUBE_VERSION}/minikube-linux-${ARCH_MINIKUBE} -o /usr/local/bin/minikube && \
chmod +x /usr/local/bin/minikube && \
# buildah login requires writing to /run
chgrp -R 0 /run && chmod -R g+rwX /run && \
mkdir -p /var/tmp/containers/runtime && \
chmod -R g+rwX /var/tmp/containers

Expand Down

0 comments on commit aabd74f

Please sign in to comment.