build: release to stable #114

Merged
jon_nfc merged 54 commits from development into master 2023-07-04 07:04:27 +00:00
4 changed files with 27 additions and 18 deletions

View File

@ -3,6 +3,8 @@ FROM --platform=$TARGETPLATFORM python:3.11-bullseye
# Ansible chucks a wobbler without. see: https://github.com/ansible/ansible/issues/78283 # Ansible chucks a wobbler without. see: https://github.com/ansible/ansible/issues/78283
ENV LC_ALL en_US.UTF-8 ENV LC_ALL en_US.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV ANSIBLE_PLAYBOOK_DIR=/etc/ansible/playbooks ENV ANSIBLE_PLAYBOOK_DIR=/etc/ansible/playbooks
@ -23,23 +25,29 @@ LABEL \
# org.opencontainers.image.version="{git tag}" # org.opencontainers.image.version="{git tag}"
RUN apt update \
# This Black Magic exists as libc-bin was being a turd and returning errors when trying to install git, ssh. # SoF fixing dpkg ldconfig not found error
# see: https://askubuntu.com/questions/1339558/cant-build-dockerfile-for-arm64-due-to-libc-bin-segmentation-fault && cd /tmp \
# see: https://github.com/dcycle/prepare-docker-buildx/blob/09057fe4879e31ee780b9e69b87f41327ca8cd8e/example/Dockerfile#L8-L10 && apt-get download \
RUN export DEBIAN_FRONTEND=noninteractive \ libc-bin \
&& apt update \ && dpkg --extract ./libc-bin_*.deb /tmp/deb \
&& apt --fix-broken install \ && cp /tmp/deb/sbin/ldconfig /sbin/ \
&& apt install -y libc-bin locales-all \ && rm -Rf /tmp/deb \
&& apt update \ && rm libc-bin_*.deb \
&& apt install --reinstall --no-install-recommends -yq \ && apt-get install --reinstall \
openssh-client \ libc-bin \
git || true \ # EoF fixing dpkg ldconfig not found error
&& dpkg --purge --force-all libc-bin \ # Set Locale to en_US as ansible requires a locale for it to function without chucking a tantrum!!
&& apt install -y \
locales \
&& sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen \
&& locale-gen \
&& apt list --upgradable \
&& apt upgrade --no-install-recommends -y \
&& apt-get install --no-install-recommends -y \ && apt-get install --no-install-recommends -y \
openssh-client \ openssh-client \
git \ git \
# End of Black Magic sshpass \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& mkdir -p /etc/ansible/roles \ && mkdir -p /etc/ansible/roles \
&& mkdir -p /etc/ansible/collections \ && mkdir -p /etc/ansible/collections \
@ -69,4 +77,5 @@ RUN ansible-galaxy collection install \
# ansible.posix.authorized_key for SSH # ansible.posix.authorized_key for SSH
ansible.posix \ ansible.posix \
# docker managment # docker managment
community.docker community.docker \
community.mysql