Last active
January 2, 2016 08:19
-
-
Save rasputnik/8275293 to your computer and use it in GitHub Desktop.
dockerfile to run riemann on openjdk7 , centos6.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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