Lint Markdown files / markdown-lint (push) Successful in 11s
Release / push-arch-linux (push) Successful in 4m32s
Release / push-rocky-linux-8 (push) Successful in 4m48s
Release / push-rocky-linux-9 (push) Successful in 3m27s
Release / push-rocky-linux-10 (push) Successful in 2m18s
Release / sync-to-hub-docker-io (push) Successful in 23m45s
Build / build-arch-linux (push) Successful in 1m59s
Build / build-rocky-linux-8 (push) Successful in 3m37s
Build / build-rocky-linux-9 (push) Successful in 2m47s
Build / build-rocky-linux-10 (push) Successful in 1m34s
32 lines
1.3 KiB
Docker
32 lines
1.3 KiB
Docker
FROM docker.io/library/rockylinux:10
|
|
|
|
RUN dnf update --assumeyes && \
|
|
dnf install --assumeyes bash-completion sudo && \
|
|
dnf install --assumeyes epel-release && \
|
|
dnf install --assumeyes ansible-core && \
|
|
dnf install --assumeyes python3.12 python3-boto3 python3-botocore && \
|
|
dnf remove --assumeyes epel-release && \
|
|
dnf clean all
|
|
|
|
# Install tools via pip
|
|
RUN curl --fail --silent --location https://bootstrap.pypa.io/get-pip.py --output get-pip.py && \
|
|
python3 get-pip.py && \
|
|
pip install ansible-lint boto3 passlib
|
|
|
|
# Install Azure Client
|
|
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
|
|
dnf install --assumeyes https://packages.microsoft.com/config/rhel/10/packages-microsoft-prod.rpm && \
|
|
dnf update --assumeyes && \
|
|
dnf install --assumeyes azure-cli
|
|
|
|
# Create default ansible inventory file
|
|
RUN mkdir --parents /etc/ansible
|
|
RUN echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
|
|
|
|
# Remove unnecessary getty and udev targets that result in high CPU usage when
|
|
# using multiple containers with molecule
|
|
# (https://github.com/ansible/molecule/issues/1104)
|
|
RUN rm --recursive --force /lib/systemd/system/systemd*udev* && \
|
|
rm --recursive --force /lib/systemd/system/getty.target
|
|
|
|
VOLUME [ "/sys/fs/cgroup", "/tmp", "/run"] |