Dockerfile 720 B

12345678910111213141516171819202122
  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 ruby193-rubygem-zbxapi cronie zabbix-sender ruby openshift-origin-util-scl ruby193-facter socat ; yum clean all
  8. # Setup ctr-ipc dir
  9. RUN ln -s /shared/var/run/ctr-ipc /var/run/ctr-ipc
  10. # Container specific files
  11. ADD start.rb /start.rb
  12. ADD register-with-zabbix.rb /register-with-zabbix.rb
  13. # TEMP WORKAROUND: until cron-send-haproxy-status.rb doesn't check service to see if haproxy is running
  14. RUN ln -sf /bin/true /etc/init.d/haproxy
  15. CMD ["/start.rb"]