Merge branch 'fix-roles-git-submodules-not-included' into 'development'

feat(playbooks): add nfc ansible playbooks to image

Closes #7

See merge request nofusscomputing/projects/ansible/execution_environment!11
This commit is contained in:
2023-05-27 04:33:23 +00:00
2 changed files with 10 additions and 1 deletions

View File

@ -17,6 +17,10 @@ RUN git clone -b development --depth 1 https://gitlab.com/nofusscomputing/projec
&& cd /tmp/ansible-roles \
&& git submodule update --init
RUN git clone -b development --depth 1 https://gitlab.com/nofusscomputing/projects/ansible/ansible_playbooks.git /tmp/ansible_playbooks \
&& cd /tmp/ansible_playbooks \
&& git submodule update --init
@ -25,9 +29,14 @@ FROM --platform=$TARGETPLATFORM python:3.11-bullseye
# Ansible chucks a wobbler without. see: https://github.com/ansible/ansible/issues/78283
ENV LC_ALL en_US.UTF-8
ENV ANSIBLE_PLAYBOOK_DIR=/etc/ansible/playbooks
COPY --from=fetch-ansible-roles /tmp/ansible-roles/roles /etc/ansible/roles
COPY --from=fetch-ansible-roles /tmp/ansible_playbooks /etc/ansible/playbooks
# Ref: https://github.com/opencontainers/image-spec/blob/d86384efdb8c30770a92415c100f57a9bffbb64e/annotations.md
LABEL \
# org.opencontainers.image.authors="{contributor url}" \