Dockerfile 1.0 KB

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