Advertisement
k3NGuru

Untitled

Jan 20th, 2022
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. FROM ubuntu:20.04
  2.  
  3. ARG PASS
  4. ARG PROXY_PASS
  5. ENV VERSION=3.7.2
  6. ENV ARCH=amd64
  7. ENV BASE_URL=https://get.helm.sh
  8.  
  9. #COPY helm-secrets /root/.local/share/helm/plugins/helm-secrets
  10. COPY ./apt.conf /etc/apt/apt.conf.d/apt.conf
  11.  
  12. RUN set -x \
  13. && cat /dev/null > /etc/apt/sources.list \
  14. && echo "deb https://l-repo-dom.ahml1.ru/repository/ubuntu-2004 focal-backports main multiverse restricted universe" >> /etc/apt/sources.list \
  15. && echo "deb https://l-repo-dom.ahml1.ru/repository/ubuntu-2004 focal main multiverse restricted universe" >> /etc/apt/sources.list \
  16. && echo "deb https://l-repo-dom.ahml1.ru/repository/ubuntu-2004 focal-proposed main multiverse restricted universe" >> /etc/apt/sources.list \
  17. && echo "deb https://l-repo-dom.ahml1.ru/repository/ubuntu-2004 focal-security main multiverse restricted universe" >> /etc/apt/sources.list \
  18. && echo "deb https://l-repo-dom.ahml1.ru/repository/ubuntu-2004 focal-updates main multiverse restricted universe" >> /etc/apt/sources.list \
  19. && apt-get update && apt-get install -y --no-install-recommends \
  20. curl \
  21. wget \
  22. openssl \
  23. git \
  24. gnupg2 \
  25. && export https_proxy=https://proxy:$PROXY_PASS@infra-rc.rfipoteka.ru:3128 \
  26. && wget ${BASE_URL}/helm-v${VERSION}-linux-${ARCH}.tar.gz --no-check-certificate -O - | tar -xz && mv linux-${ARCH}/helm /usr/bin/helm && chmod +x /usr/bin/helm && rm -rf linux-${ARCH} \
  27. # && helm plugin install https://github.com/jkroepke/helm-secrets --version v3.11.0 \
  28. && wget https://github.com/mozilla/sops/releases/download/v3.7.1/sops_3.7.1_amd64.deb --no-check-certificate && dpkg -i sops_3.7.1_amd64.deb \
  29. && wget https://storage.googleapis.com/kubernetes-release/release/v1.21.8/bin/linux/amd64/kubectl --no-check-certificate && chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl \
  30. # Cleaning
  31. && rm -rf /var/lib/apt-get/lists/* /var/lib/apt/lists/* /tmp/* \
  32. && rm -rf /usr/share/man/?? \
  33. && rm -rf /usr/share/man/??_*
  34.  
  35. COPY helm-secrets /root/.local/share/helm/plugins/helm-secrets
  36.  
  37.  
  38. CMD [ "/bin/bash" ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement