ROM ubuntu:14.04 MAINTAINER Masato Shimizu <ma6ato@gmail.com> ## apt-get update RUN sed -i~ -e 's/archive.ubuntu.com/ftp.jaist.ac.jp/' /etc/apt/sources.list \ && apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl default-jre-headless # Download the latest .deb and install RUN curl http://aphyr.com/riemann/riemann_0.2.6_all.deb > /tmp/riemann_0.2.6_all.deb RUN dpkg -i /tmp/riemann_0.2.6_all.deb # Expose the ports for inbound events and websockets EXPOSE 5555 EXPOSE 5555/udp EXPOSE 5556 # Share the config directory as a volume VOLUME /etc/riemann ADD riemann.config /etc/riemann/riemann.config # Set the hostname in /etc/hosts so that Riemann doesn't die due to unknownHostException RUN echo 127.0.0.1 $(hostname) > /etc/hosts CMD ["/usr/bin/riemann","/etc/riemann/riemann.config"]
$ docker run --name riemann-dash --rm -p 4567:4567 davidkelley/riemann-dash == Sinatra/1.4.5 has taken the stage on 4567 for development with backup from Thin
$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4ebef3433a61 masato/riemann-health:latest "riemann-health --ho 37 minutes ago Up 37 minutes riemann-health bd3ff7613a4f davidkelley/riemann-dash:latest "riemann-dash" About an hour ago Up About an hour 0.0.0.0:4567->4567/tcp riemann-dash ae55fc1b437d 0ff641514409 "/usr/bin/riemann /e About an hour ago Up About an hour 5555/udp, 0.0.0.0:5555->5555/tcp, 0.0.0.0:5556->5556/tcp riemann