FIxed image address

This commit is contained in:
Jon Ervine 2021-05-19 20:53:17 +08:00
parent c2c86a406c
commit 9fed73697c
2 changed files with 21 additions and 1 deletions

View File

@ -1,6 +1,6 @@
ARG ANSIBLE_RUNNER_IMAGE=quay.io/ansible/ansible-runner:devel ARG ANSIBLE_RUNNER_IMAGE=quay.io/ansible/ansible-runner:devel
ARG PYTHON_BUILDER_IMAGE=quay.io/ansible/python-builder:latest 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 FROM $ANSIBLE_RUNNER_IMAGE as galaxy

20
Containerfile.1 Normal file
View File

@ -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