Skip to content

Instantly share code, notes, and snippets.

@jcpowermac
Created January 14, 2017 15:20
Show Gist options
  • Select an option

  • Save jcpowermac/c804b47fbde5255102a34638aaeaa0a8 to your computer and use it in GitHub Desktop.

Select an option

Save jcpowermac/c804b47fbde5255102a34638aaeaa0a8 to your computer and use it in GitHub Desktop.
FROM fedora
RUN mkdir -p /opt/openshift-ansible/
COPY ./ansible.cfg.example /opt/openshift-ansible/ansible.cfg
COPY . /opt/openshift-ansible
COPY .ssh/ /root/
RUN echo "callback_plugins = /usr/lib/python2.7/site-packages/ara/plugins/callbacks\naction_plugins = /usr/lib/python2.7/site-packages/ara/plugins/actions\nlibrary = /usr/lib/python2.7/site-packages/ara/plugins/modules" >> /opt/openshift-ansible/ansible.cfg
RUN dnf install -y vim tar gcc python-pip python-devel libffi-devel libxslt libxslt-devel git curl openssl-devel redhat-rpm-config && \
pip install ara ansible
EXPOSE 8080
ENTRYPOINT ["/usr/bin/ara-manage"]
CMD ["runserver", "-h", "0.0.0.0", "-p", "8080"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment