Skip to content

Instantly share code, notes, and snippets.

@navicore
Created January 20, 2015 19:52
Show Gist options
  • Save navicore/572945acb159fd134464 to your computer and use it in GitHub Desktop.
Save navicore/572945acb159fd134464 to your computer and use it in GitHub Desktop.
Dockerfile for riemann http://riemann.io/
#Dockerfile for riemann http://riemann.io/
#base
FROM ruby:1.9-wheezy
MAINTAINER Amaret, Inc. <[email protected]>
EXPOSE 5555
ENTRYPOINT ["/usr/bin/java", "-Djava.awt.headless=true", "-Xmx128m", "-XX:+UseConcMarkSweepGC", "-jar", "/app/riemann-0.2.8/lib/riemann.jar", "/etc/riemann.config"]
RUN ["apt-get", "update"]
RUN mkdir -p /app
#java
ENV DEBIAN_FRONTEND noninteractive
RUN ["apt-get", "install", "-y", "--no-install-recommends", "openjdk-7-jre-headless"]
#riemann
RUN gem install riemann-client riemann-tools riemann-dash
RUN wget -O /tmp/riemann.tar.bz2 https://aphyr.com/riemann/riemann-0.2.8.tar.bz2
RUN tar xvjf /tmp/riemann.tar.bz2 -C /app/
#app
ADD acc.pylib /app/acc.pylib/
#cleanup
RUN gem cleanup
RUN ["apt-get", "-y", "autoremove"]
RUN ["apt-get", "-y", "autoclean"]
RUN ["apt-get", "-y", "clean"]
RUN rm -rf /tmp/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment