Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # This FROM gives us the proper oo-rhui certs, basic runtime env vars, basic repos, etc.
  2. # Otherwise we can't install anything
  3. FROM rhel6ops
  4. MAINTAINER Thomas Wiest <twiest@redhat.com>
  5. RUN yum -y update ; yum clean all
  6. # Container Specific RPMs
  7. RUN yum -y install puppet3 crontabs cronie-anacron cronie system-config-firewall-base httpd mod_ssl ruby193-rubygem-zbxapi mod_security rhc-site-static; yum clean all
  8. # BEGIN: These are to fake out puppet
  9. RUN rm /usr/sbin/lokkit ; ln -s /bin/true /usr/sbin/lokkit
  10. # this is needed so that we can run puppet without running the start script
  11. RUN mkdir -p /etc/haproxy
  12. # END: These are to fake out puppet
  13. # Container specific files
  14. ADD start.rb /usr/local/sbin/start.rb
  15. ADD service.rb /sbin/service
  16. # Ensure the scripts are executable
  17. RUN chmod 755 /sbin/service /usr/local/sbin/start.rb
  18. RUN yum -y install strace ; yum clean all
  19. # Get rid of puppet deprecation warnings
  20. RUN sed -i 's/^.*manifest =.*$//' /etc/puppet/puppet.conf ; \
  21. sed -i 's/^.*manifestdir =.*$//' /etc/puppet/puppet.conf ; \
  22. sed -i 's/^.*modulepath =.*$//' /etc/puppet/puppet.conf
  23. CMD ["/usr/local/sbin/start.rb"]