Created
May 11, 2020 20:09
-
-
Save matburt/b51fff69bd74dead22554247dae127d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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