From 2d54a3cc28280383b0879349d9607775fe9892c5 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 14 Nov 2023 20:43:31 +0930 Subject: [PATCH 1/2] feat(ansible): add community.dns module !114 --- dockerfile | 8 ++++---- requirements.txt | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dockerfile b/dockerfile index d7eee01..a915503 100644 --- a/dockerfile +++ b/dockerfile @@ -78,13 +78,13 @@ RUN pip install --index-url https://gitlab.com/api/v4/projects/45741845/packages RUN ansible-galaxy collection install \ + awx.awx \ # ansible.posix.authorized_key for SSH ansible.posix \ - awx.awx \ - # community.general.gitlab_* - community.general \ + community.dns \ # docker managment community.docker \ + # community.general.gitlab_* + community.general \ community.mysql \ - community.postgresql \ kubernetes.core \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 2b8c3ce..94a925b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,3 +8,5 @@ python_gitlab==3.14.0 psycopg2==2.9.9 # community.mysql PyMySQL==1.1.0 + +dnspython \ No newline at end of file -- 2.49.0 From 8e96e160739090d428f482c160bc82e9855b865f Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 14 Nov 2023 20:44:11 +0930 Subject: [PATCH 2/2] feat(container): add ansible receptor !114 closes #17 --- dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index a915503..883a9d4 100644 --- a/dockerfile +++ b/dockerfile @@ -1,5 +1,9 @@ ARG TARGETPLATFORM=linux/amd64 + +FROM --platform=$TARGETPLATFORM quay.io/ansible/receptor:devel as receptor + + FROM --platform=$TARGETPLATFORM python:3.11-bullseye # Ansible chucks a wobbler without. see: https://github.com/ansible/ansible/issues/78283 @@ -71,8 +75,10 @@ WORKDIR /workdir COPY requirements.txt /tmp/requirements.txt +COPY --from=receptor /usr/bin/receptor /usr/bin/receptor -RUN pip install --upgrade pip +RUN pip install --upgrade pip; \ + mkdir -p /var/run/receptor RUN pip install --index-url https://gitlab.com/api/v4/projects/45741845/packages/pypi/simple -r /tmp/requirements.txt -- 2.49.0