Dockerfile 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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 rsyslog rhc-server-common httpd mod_security mod_ssl haproxy15 supervisor ruby ruby193-ruby openshift-origin-util-scl ; yum clean all
  8. # this needs to be on it's own line, otherwise the libra_user group isn't setup properly yet
  9. RUN yum -y install rhc-site-static ; yum clean all
  10. # WORKKAROUND: for a bug in supervisor that causes it to use 100% cpu
  11. RUN yum -y install https://kojipkgs.fedoraproject.org//work/tasks/8506/7818506/supervisor-2.1-9.el6.noarch.rpm ; yum clean all
  12. # Setup libra_user group with correct members
  13. RUN usermod -a -G libra_user apache
  14. # Setup libra_ops group for compatibility with host puppet
  15. RUN groupadd libra_ops
  16. # Setup ctr-ipc dir
  17. RUN ln -s /shared/var/run/ctr-ipc /var/run/ctr-ipc
  18. # common
  19. ADD supervisord.conf /etc/supervisord.conf
  20. ADD start.sh /usr/local/sbin/start.sh
  21. ADD ipc-watcher.rb /usr/local/sbin/ipc-watcher.rb
  22. EXPOSE 80 443 4999
  23. CMD ["/usr/local/sbin/start.sh"]