Skip to content

Commit

Permalink
Use latest commit of ansible-builder
Browse files Browse the repository at this point in the history
Until we get to a point where ansible-builder is a little more stable,
lets consume the latest commits. To help better test ansible-builder.

Signed-off-by: Paul Belanger <[email protected]>
  • Loading branch information
pabelanger committed Jan 12, 2021
1 parent a4dbae5 commit 82a4ee5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
FROM quay.io/ansible/ansible-runner:devel as galaxy
ARG ANSIBLE_RUNNER_IMAGE=quay.io/ansible/ansible-runner:devel
ARG PYTHON_BUILDER_IMAGE=quay.io/ansible/python-builder:latest

FROM $ANSIBLE_RUNNER_IMAGE as galaxy

ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS=
ADD _build/requirements.yml /build/_build/requirements.yml

RUN ansible-galaxy role install -r /build/_build/requirements.yml --roles-path /usr/share/ansible/roles
RUN ansible-galaxy collection install -r /build/_build/requirements.yml --collections-path /usr/share/ansible/collections

RUN mkdir -p /usr/share/ansible/roles /usr/share/ansible/collections

FROM quay.io/ansible/python-builder:latest as builder
RUN ansible-galaxy collection install $ANSIBLE_GALAXY_CLI_COLLECTION_OPTS -r /build/_build/requirements.yml --collections-path /usr/share/ansible/collections

FROM $PYTHON_BUILDER_IMAGE as builder
ADD _build/requirements_combined.txt /tmp/src/requirements.txt
ADD _build/bindep_combined.txt /tmp/src/bindep.txt
RUN assemble

FROM quay.io/ansible/ansible-runner:devel

FROM $ANSIBLE_RUNNER_IMAGE

COPY --from=galaxy /usr/share/ansible/roles /usr/share/ansible/roles
COPY --from=galaxy /usr/share/ansible/collections /usr/share/ansible/collections
COPY --from=galaxy /usr/share/ansible /usr/share/ansible

COPY --from=builder /output/ /output/
RUN /output/install-from-bindep && rm -rf /output/wheels
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ansible-builder
git+https://github.com/ansible/ansible-builder.git@devel#egg=ansible-builder

0 comments on commit 82a4ee5

Please sign in to comment.