Dockerfile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM debian:stretch
  2. # Tools needed
  3. # gcloud
  4. # helm
  5. # kubectl
  6. # node
  7. # npm
  8. # Secure software install; required first in order to be able to process keys, packages, etc.
  9. RUN apt-get update && apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common \
  10. && rm -rf /var/lib/apt/lists/*
  11. # Google Cloud stuff
  12. RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
  13. RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
  14. # Docker stuff
  15. RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
  16. RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
  17. # Will run apt-get update for us.
  18. RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
  19. RUN apt-get install -y google-cloud-sdk wget make gettext-base jq nodejs npm \
  20. && rm -rf /var/lib/apt/lists/*
  21. RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
  22. # Install helm
  23. RUN curl -LO https://get.helm.sh/helm-v3.2.1-linux-amd64.tar.gz
  24. RUN tar zxvf helm-v3.2.1-linux-amd64.tar.gz
  25. RUN mv linux-amd64/helm /usr/bin
  26. RUN /usr/bin/helm version
  27. # Kubectl
  28. #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
  29. RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.19.14/bin/linux/amd64/kubectl
  30. RUN chmod +x kubectl
  31. RUN mv kubectl /usr/bin
  32. RUN /usr/bin/kubectl --help