-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
68 lines (59 loc) · 1.69 KB
/
Copy pathDockerfile
File metadata and controls
68 lines (59 loc) · 1.69 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM alpine:3.24
ARG ANSIBLE_CORE_VERSION="2.21.0"
ARG OPENTOFU_VERSION="v1.12.1"
ARG KUBECTL_VERSION="v1.36.1"
ARG HELM_VERSION="v4.2.0"
ENV PYTHONDONTWRITEBYTECODE=True
ENV PIP_NO_CACHE_DIR=1
ENV TZ=UTC
RUN apk add --no-cache \
aws-cli \
bash \
bash-completion \
bind-tools \
ca-certificates \
conntrack-tools \
curl \
dumb-init \
git \
htop \
inetutils-telnet \
iproute2 \
iptables \
iputils \
jq \
make \
net-tools \
nmap-ncat \
openssh-client \
openssl \
py3-pip \
py3-semver \
python3 \
rsync \
s3cmd \
strace \
sudo \
tcpdump \
tzdata \
unzip \
wget
RUN pip install --break-system-packages \
ansible-core==${ANSIBLE_CORE_VERSION} \
hvac \
python-hcl2 \
&& ansible-galaxy collection install -p /usr/share/ansible/collections \
community.docker community.general community.hashi_vault \
&& rm -rf /root/.cache /root/.ansible/tmp
RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 \
| bash -s -- -v ${HELM_VERSION}
RUN curl -L https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl \
-o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl
RUN OPENTOFU_VERSION_STRIPPED=$(echo ${OPENTOFU_VERSION} | sed 's/^v//') \
&& curl -LO https://github.com/opentofu/opentofu/releases/download/${OPENTOFU_VERSION}/tofu_${OPENTOFU_VERSION_STRIPPED}_linux_amd64.zip \
&& unzip tofu_${OPENTOFU_VERSION_STRIPPED}_linux_amd64.zip -d /usr/local/bin \
&& rm tofu_${OPENTOFU_VERSION_STRIPPED}_linux_amd64.zip \
&& chmod +x /usr/local/bin/tofu
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/bin/bash"]