ContainerImage.AnsibleExtended/Dockerfile

51 lines
1.4 KiB
Docker
Raw Normal View History

2022-04-23 11:07:31 +00:00
# FROM alpine:latest AS download
# RUN apk --update add --no-cache \
# curl \
# jq && \
# curl -L https://api.github.com/repos/<name>/<name>/releases/latest | \
# jq -r '.assets[] | select(.name | contains("amd64")) | .browser_download_url' | \
# xargs -I {} curl -L -o /tmp/packages-microsoft-prod.deb {}
2022-04-23 10:36:25 +00:00
FROM debian:11-slim
2022-04-23 11:07:31 +00:00
COPY --from=alpine/helm:latest /usr/bin/helm /usr/bin/helm
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-04-23 10:36:25 +00:00
curl \
git \
jq \
locales \
netcat-openbsd \
openssh-client \
# (python3-*) Dependency for installation of Ansible
python3-pip \
python3-setuptools \
python3-wheel \
yamllint && \
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 \
# (netaddr) Dependency for Ansible 'ipaddr' filter
netaddr \
2022-04-23 11:14:49 +00:00
# (pyvmomi) Dependency for Ansible 'community.vmware' collection
2022-04-23 10:36:25 +00:00
pyvmomi \
2022-04-23 11:14:49 +00:00
# (pyyaml) Dependency for Ansible 'kubernetes.core' collection
pyyaml && \
2022-04-23 10:36:25 +00:00
apt-get remove -y \
curl && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \
rm -f /tmp/ovftool-installer
ENTRYPOINT []
CMD []