summaryrefslogtreecommitdiffstats
path: root/roles/docker_img_monitoring/files/monitoring_container/Dockerfile
diff options
context:
space:
mode:
authorThomas Wiest <twiest@redhat.com>2014-10-28 14:43:15 -0400
committerThomas Wiest <twiest@redhat.com>2014-10-29 12:00:06 -0400
commit525b741b6fbb178b11c6a2b3ccd4bf9ff9e98e0c (patch)
tree6b063a310bb71cae17f3b6a910dca5ac1584f829 /roles/docker_img_monitoring/files/monitoring_container/Dockerfile
parentfd788c250c1fbdc5cc188aa29812c65ebafecc59 (diff)
downloadopenshift-525b741b6fbb178b11c6a2b3ccd4bf9ff9e98e0c.tar.gz
openshift-525b741b6fbb178b11c6a2b3ccd4bf9ff9e98e0c.tar.bz2
openshift-525b741b6fbb178b11c6a2b3ccd4bf9ff9e98e0c.tar.xz
openshift-525b741b6fbb178b11c6a2b3ccd4bf9ff9e98e0c.zip
Added Docker image build stuff
Diffstat (limited to 'roles/docker_img_monitoring/files/monitoring_container/Dockerfile')
-rw-r--r--roles/docker_img_monitoring/files/monitoring_container/Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/roles/docker_img_monitoring/files/monitoring_container/Dockerfile b/roles/docker_img_monitoring/files/monitoring_container/Dockerfile
new file mode 100644
index 000000000..cd1651bc1
--- /dev/null
+++ b/roles/docker_img_monitoring/files/monitoring_container/Dockerfile
@@ -0,0 +1,26 @@
+# This FROM gives us the proper oo-rhui certs, basic runtime env vars, basic repos, etc.
+# Otherwise we can't install anything
+FROM rhel6ops
+
+MAINTAINER Thomas Wiest <twiest@redhat.com>
+
+RUN yum -y update ; yum clean all
+
+# Container Specific RPMs
+RUN yum -y install ruby193-rubygem-zbxapi cronie zabbix-sender ruby openshift-origin-util-scl ruby193-facter socat ; yum clean all
+
+# Setup ctr-ipc dir
+RUN ln -s /shared/var/run/ctr-ipc /var/run/ctr-ipc
+
+# TEMP WORKAROUND: until zbxapi rpm is updated to work with zbx 2.4
+RUN ruby -i -ane 'if $_ =~ /APIInfo.version/ ; puts " @major,@minor=2,0" ; else puts $_ ; end' /opt/rh/ruby193/root/usr/share/gems/gems/zbxapi-0.3.3/zbxapi.rb
+
+
+# Container specific files
+ADD start.rb /start.rb
+ADD register-with-zabbix.rb /register-with-zabbix.rb
+
+# TEMP WORKAROUND: until cron-send-haproxy-status.rb doesn't check service to see if haproxy is running
+RUN ln -sf /bin/true /etc/init.d/haproxy
+
+CMD ["/start.rb"]