-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (37 loc) · 1.14 KB
/
Dockerfile
File metadata and controls
42 lines (37 loc) · 1.14 KB
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
FROM docker:20.10.5
ARG USER="ciuser"
ARG ID="1000"
ENV ANSIBLE_VERSION="2.9.4"
ENV ANSIBLE_LINT="5.0.2"
ENV PASSLIB_VERSION="1.7.4"
ENV BCRYPT_VERSION="3.2.0"
ENV TERRAFORM_VERSION="0.14.7"
ENV GOOGLE_SDK_VERSION="332.0.0"
ENV AWS_CLI_VERSION="1.19.27"
ENV KUBECTL_VERSION="1.20.0"
ENV KUBECTX_VERSION="0.9.3"
ENV HELM_VERSION="3.5.2"
ENV VAULT_VERSION="1.6.3"
ENV JQ_VERSION="1.6"
ENV BIN_PATH="/usr/local/bin"
ENV PATH="/google-cloud-sdk/bin:${PATH}"
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
COPY extra /extra
RUN apk update && apk upgrade && \
apk add --no-cache python3 python3-dev bash git openssh-client openssl ca-certificates tar wget unzip py3-pip curl && \
pip3 install --upgrade pip && \
pip3 install awscli==${AWS_CLI_VERSION} && \
/extra/ansible/ansible.sh && \
/extra/terraform/terraform.sh && \
/extra/vault/vault.sh && \
/extra/gcloud/gcloud.sh && \
/extra/kube/kubectl.sh && \
/extra/kube/kubectx.sh && \
/extra/helm/helm.sh && \
/extra/jq/jq.sh && \
rm -rf /extra
RUN addgroup -g ${ID} ${USER} \
&& adduser -D -u ${ID} -G ${USER} -s /bin/bash ${USER}
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD /bin/bash