cyberark/secretless-broker

View on GitHub
k8s-ci/Dockerfile

Summary

Maintainability
Test Coverage
FROM google/cloud-sdk:latest

RUN mkdir -p /src
WORKDIR /src

# Install Docker client
RUN apt-get update -y && \
    apt-get install -y apt-transport-https ca-certificates curl gnupg2 \
      software-properties-common wget && \
    curl -fsSL \
      https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg \
      | apt-key add - && \
    add-apt-repository "deb [arch=amd64] \
      https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \
      $(lsb_release -cs) stable" && \
    apt-get update && \
    apt-get install -y docker-ce && \
    rm -rf /var/lib/apt/lists/*

# Install kubectl CLI
RUN wget -q -O /usr/local/bin/kubectl \
      https://storage.googleapis.com/kubernetes-release/release/v1.11.3/bin/linux/amd64/kubectl && \
    chmod +x /usr/local/bin/kubectl

# Install kubectx and kubens
RUN wget -q -O /usr/local/bin/kubectx \
      https://raw.githubusercontent.com/ahmetb/kubectx/master/kubectx && \
    chmod +x /usr/local/bin/kubectx
RUN wget -q -O /usr/local/bin/kubens \
      https://raw.githubusercontent.com/ahmetb/kubectx/master/kubens && \
    chmod +x /usr/local/bin/kubens