Skip to content

Instantly share code, notes, and snippets.

@kevinswiber
Created December 1, 2013 22:47
Show Gist options
  • Select an option

  • Save kevinswiber/7741851 to your computer and use it in GitHub Desktop.

Select an option

Save kevinswiber/7741851 to your computer and use it in GitHub Desktop.
Dockerfiles for running Logplex in a container.
FROM ubuntu
MAINTAINER Kevin Swiber <kswiber@gmail.com>
RUN apt-get install -y build-essential libncurses5-dev openssl libssl-dev fop xsltproc unixodbc-dev wget
RUN mkdir /tmp/erlang && cd /tmp/erlang
RUN wget http://erlang.org/download/otp_src_R16B02.tar.gz && \
tar zxvf otp_src_R16B02.tar.gz && \
cd otp_src_R16B02 && \
./configure && make && make install
FROM erlang-r16b02
MAINTAINER Kevin Swiber <kswiber@gmail.com>
RUN apt-get update
RUN apt-get install -y wget git
RUN wget -qO /tmp/logplex.tar.gz http://github.com/heroku/logplex/tarball/master && \
tar -zxvf /tmp/logplex.tar.gz --transform="s/^heroku-logplex-[^\/]*/logplex/" -C /
RUN cd /logplex && \
./rebar --config public.rebar.config get-deps compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment