Skip to content

Instantly share code, notes, and snippets.

@matburt
Created May 11, 2020 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matburt/b51fff69bd74dead22554247dae127d2 to your computer and use it in GitHub Desktop.
Save matburt/b51fff69bd74dead22554247dae127d2 to your computer and use it in GitHub Desktop.
FROM registry.access.redhat.com/ubi8/python-36
USER root
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /bin/tini
RUN pip3 install git+https://github.com/ansible/ansible-runner
RUN pip3 install git+https://github.com/ansible/ansible
RUN chmod +xr /bin/tini
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
ENV RUNNER_BASE_COMMAND=ansible-playbook
ENV HOME=/runner
VOLUME /runner
WORKDIR /runner
RUN chown default /runner
USER default
ENTRYPOINT ["/bin/tini", "--"]
CMD ["/opt/app-root/bin/ansible-runner", "run", "/runner"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment