Skip to content

Instantly share code, notes, and snippets.

@rasputnik rasputnik/gist:8275293
Last active Jan 2, 2016

Embed
What would you like to do?
dockerfile to run riemann on openjdk7 , centos6.5
# build up an openjdk stack on centos 6 to run riemann rpm
#
# docker build -t 'your/riemann' <thisfile>
#
# then run with:
# docker run -P -d your/riemann
FROM saltstack/centos-6-minimal
MAINTAINER Dick Davies <dick@hellooperator.net>
# dead simple config, just listens for protobuf and websockets on all interfaces
# so that port mappings ('EXPOSE' below) will work.
#
# (change to taste)
ENV CONF https://gist.github.com/rasputnik/8257020/raw/257681bdffacbb3b1bc4c88ea9cf444bdafd9dfd/gistfile1.clj
ENV RPM http://aphyr.com/riemann/riemann-0.2.4-1.noarch.rpm
# install JDK and riemann
RUN yum install -y java-1.7.0-openjdk $RPM
# protocol buffer TCP port
EXPOSE 5555
# can't expose same port for TCP and UDP until https://github.com/dotcloud/docker/pull/3435 is merged
# EXPOSE 5555/udp
# websockets port
EXPOSE 5556
RUN curl -so /etc/riemann/riemann.config $CONF
ENTRYPOINT ["/usr/bin/java", "-jar", "/usr/lib/riemann/riemann.jar", "/etc/riemann/riemann.config"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.