ContainerImage.AnsibleExtended/Dockerfile

53 lines
1.6 KiB
Docker
Raw Normal View History

2022-06-17 08:51:39 +00:00
FROM alpine:latest AS download
2022-04-23 11:07:31 +00:00
2022-06-17 08:51:39 +00:00
RUN apk --update add --no-cache \
curl \
jq && \
curl -L https://api.github.com/repos/helm/helm/releases/latest | \
jq -r '.tag_name' | \
xargs -I {} curl -L -o /tmp/helm.tar.gz https://get.helm.sh/helm-{}-linux-amd64.tar.gz && \
tar -xzf /tmp/helm.tar.gz --strip-components=1 -C /tmp
2022-04-23 10:36:25 +00:00
FROM debian:11-slim
2022-06-17 08:51:39 +00:00
#COPY --from=alpine/helm:latest /usr/bin/helm /usr/bin/helm
COPY --from=download /tmp/helm /usr/bin/helm
2022-04-23 11:07:31 +00:00
2022-04-23 10:36:25 +00:00
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
2022-04-23 11:09:46 +00:00
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
2022-05-02 09:28:30 +00:00
# (curl) Dependency for Ansible 'kubernetes.core' collection
2022-04-23 10:36:25 +00:00
curl \
git \
jq \
locales \
netcat-openbsd \
openssh-client \
# (python3-*) Dependency for installation of Ansible
2022-04-24 19:51:54 +00:00
python3-pip && \
2022-04-23 10:36:25 +00:00
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen && \
pip3 install --upgrade pip && \
pip3 install \
ansible-core \
# (jmespath) Dependency for Ansible 'json_query' filter
jmespath \
# (kubernetes) Dependency for Ansible 'kubernetes.core' collection
kubernetes \
2022-04-23 10:36:25 +00:00
# (netaddr) Dependency for Ansible 'ipaddr' filter
netaddr \
2022-04-23 11:14:49 +00:00
# (pyvmomi) Dependency for Ansible 'community.vmware' collection
pyvmomi \
2022-04-23 11:14:49 +00:00
# (pyyaml) Dependency for Ansible 'kubernetes.core' collection
pyyaml \
setuptools \
2022-04-26 13:23:23 +00:00
wheel \
yamllint && \
2022-04-23 10:36:25 +00:00
rm -rf /var/lib/apt/lists/* && \
rm -f /tmp/ovftool-installer
ENTRYPOINT []
CMD []