Dockerfile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. # Setup libra_ops group for compatibility with host puppet
  13. RUN groupadd libra_ops
  14. # END: These are to fake out puppet
  15. # Container specific files
  16. ADD start.rb /usr/local/sbin/start.rb
  17. ADD service.rb /sbin/service
  18. # Ensure the scripts are executable
  19. RUN chmod 755 /sbin/service /usr/local/sbin/start.rb
  20. RUN yum -y install strace ; yum clean all
  21. # Get rid of puppet deprecation warnings
  22. RUN sed -i 's/^.*manifest =.*$//' /etc/puppet/puppet.conf ; \
  23. sed -i 's/^.*manifestdir =.*$//' /etc/puppet/puppet.conf ; \
  24. sed -i 's/^.*modulepath =.*$//' /etc/puppet/puppet.conf
  25. CMD ["/usr/local/sbin/start.rb"]