diff --git a/codeship-steps.yml b/codeship-steps.yml index 13dd165..5b2b32b 100644 --- a/codeship-steps.yml +++ b/codeship-steps.yml @@ -10,6 +10,8 @@ steps: - name: Check for tooling command: /deploy/test/test_tools_available.sh + - name: Check for kubectl tool + command: kubectl version --client - name: Tests type: parallel steps: diff --git a/deployment/Dockerfile b/deployment/Dockerfile index 72c0b8b..527de29 100644 --- a/deployment/Dockerfile +++ b/deployment/Dockerfile @@ -8,4 +8,9 @@ RUN \ jq \ zip +# https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-binary-via-curl +ARG KUBECTL_VERSION="v1.9.0" +RUN curl -L "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" > /usr/local/bin/kubectl \ + && chmod +x /usr/local/bin/kubectl + COPY scripts/ /usr/bin/