From 9fed73697c02794a8f620517bf64c08640599d62 Mon Sep 17 00:00:00 2001 From: Jon Ervine Date: Wed, 19 May 2021 20:53:17 +0800 Subject: [PATCH] FIxed image address --- Containerfile | 2 +- Containerfile.1 | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Containerfile.1 diff --git a/Containerfile b/Containerfile index e9eb536..81b787e 100644 --- a/Containerfile +++ b/Containerfile @@ -1,6 +1,6 @@ ARG ANSIBLE_RUNNER_IMAGE=quay.io/ansible/ansible-runner:devel ARG PYTHON_BUILDER_IMAGE=quay.io/ansible/python-builder:latest -ARG ANSIBLE_RECEPTOR_IMAGE=qquay.io/project-receptor/receptor:0.9.7 +ARG ANSIBLE_RECEPTOR_IMAGE=quay.io/project-receptor/receptor:0.9.7 FROM $ANSIBLE_RUNNER_IMAGE as galaxy diff --git a/Containerfile.1 b/Containerfile.1 new file mode 100644 index 0000000..998498e --- /dev/null +++ b/Containerfile.1 @@ -0,0 +1,20 @@ +ARG ANSIBLE_RUNNER_IMAGE=quay.io/ansible/awx-ee:0.2.0 +ARG PYTHON_BUILDER_IMAGE=quay.io/ansible/python-builder:latest + +FROM $ANSIBLE_RUNNER_IMAGE as galaxy + +ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS= +ADD _build /build + +WORKDIR /build +RUN ansible-galaxy role install -r requirements.yml --roles-path /usr/share/ansible/roles +RUN ansible-galaxy collection install $ANSIBLE_GALAXY_CLI_COLLECTION_OPTS -r requirements.yml --collections-path /usr/share/ansible/collections + +FROM $ANSIBLE_RUNNER_IMAGE + +COPY --from=galaxy /usr/share/ansible /usr/share/ansible + +RUN alternatives --set python /usr/bin/python3 +CMD /run.sh +USER 1000 +RUN git lfs install