diff --git a/Dockerfile b/Dockerfile index 1d32230..35c6057 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,9 @@ FROM alpine:latest RUN apk add py-pip curl RUN pip install awscli -RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt` /usr/bin/kubectl -RUN chmod +x /usr/bin/kubectl +RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl +RUN chmod +x ./kubectl +RUN mv ./kubectl /usr/bin/kubectl COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 045c457..334a4a1 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,7 @@ set -e # Extract the base64 encoded config data and write this to the KUBECONFIG -echo "$KUBE_CONFIG_DATA" | base64 --decode > /tmp/config +echo "$KUBE_CONFIG_DATA" | base64 -d > /tmp/config export KUBECONFIG=/tmp/config sh -c "kubectl $*" \ No newline at end of file