This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
54 lines (44 loc) · 2.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM alpine:3.11
# Versions
ENV KUBECTL_VERSION="1.19.6/2021-01-05"
ENV AWS_VERSION="1.20.23"
ENV HELM_VERSION="3.7.0"
ENV HELM_DIFF_VERSION="3.1.3"
ENV HELM_S3_VERSION="0.10.0"
ENV HELM_SECRETS_VERSION="3.8.3"
ENV HELM_GIT_VERSION="0.10.0"
ENV HELMFILE_VERSION="v0.140.1"
ENV SOPS_VERSION="v3.7.1"
ENV YQ_VERSION="v4.13.0"
# Install Packages
RUN apk add --update --no-cache bash ca-certificates coreutils curl gettext-dev git groff jq less make python3 tree
# yq
RUN wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 -O /usr/bin/yq && \
chmod +x /usr/bin/yq
# kubectl
RUN curl -sL https://amazon-eks.s3-us-west-2.amazonaws.com/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \
chmod +x /usr/local/bin/kubectl
# sops
RUN curl -sL https://github.com/mozilla/sops/releases/download/${SOPS_VERSION}/sops-${SOPS_VERSION}.linux > /usr/local/bin/sops && \
chmod +x /usr/local/bin/sops
# helm
RUN curl -sL https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz -o /tmp/helm.tar.gz && \
tar -xvzf /tmp/helm.tar.gz -C /tmp && \
mv /tmp/linux-amd64/helm /usr/local/bin/helm && \
chmod +x /usr/local/bin/helm && \
helm repo add stable https://charts.helm.sh/stable/ && \
helm repo add incubator https://charts.helm.sh/incubator && \
helm plugin install https://github.com/databus23/helm-diff --version v${HELM_DIFF_VERSION} && \
helm plugin install https://github.com/jkroepke/helm-secrets --version v${HELM_SECRETS_VERSION} && \
helm plugin install https://github.com/hypnoglow/helm-s3.git --version v${HELM_S3_VERSION} && \
helm plugin install https://github.com/aslafy-z/helm-git.git --version v${HELM_GIT_VERSION} && \
rm -rf /tmp/*
# aws-cli
RUN pip3 install --no-cache-dir awscli==${AWS_VERSION}
# helmfile
RUN curl -sL https://github.com/roboll/helmfile/releases/download/${HELMFILE_VERSION}/helmfile_linux_amd64 -o /usr/local/bin/helmfile && \
chmod +x /usr/local/bin/helmfile
# General Setup
RUN mkdir -p /work
WORKDIR /work
ENTRYPOINT ["kubectl"]