Skip to content

Instantly share code, notes, and snippets.

@dzlab
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dzlab/11141670 to your computer and use it in GitHub Desktop.
Save dzlab/11141670 to your computer and use it in GitHub Desktop.
A Dockerfile for installing erocci from an erlang image
# Use Ubuntu image where erlang is installed
FROM ubuntu
MAINTAINER dzlab dzlabs@outlook.com
# installing erlang-related prerequis
RUN apt-get install -y libssl-dev libstdc++-4.8-dev build-essential
# installing erocci prerequis
RUN apt-get install -y libncurses5-dev libexpat1-dev libxml2-dev uuid-runtime
# Intall a bunch of general prerequisites
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
# install utilities
RUN apt-get install -y git curl
# installing kerl
RUN cd /home/ && git clone https://github.com/spawngrid/kerl
RUN cd /home/kerl/ && chmod a+x kerl
ENV PATH /home/kerl/:$PATH
# installing OTP via kerl
RUN kerl build R16B01 r16b01
RUN kerl install r16b01 /home/r16b01
# activate installation
RUN . /home/r16b01/activate
ENV PATH /home/r16b01/bin/:$PATH
# installing rebar
RUN cd /home/ && git clone git://github.com/rebar/rebar.git
RUN cd /home/rebar/ && ./bootstrap
ENV PATH /home/rebar/:$PATH
# clone erocci
RUN cd /home/ && git clone https://github.com/jeanparpaillon/erocci
# compile and run sample project
RUN cd /home/erocci/ && make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment