From 2b0034667d45b0637b1b423539689b432c752b47 Mon Sep 17 00:00:00 2001 From: Roberto Catini Date: Mon, 26 May 2014 00:59:05 +0200 Subject: [PATCH] Add Dockerfile: * The ports are not automatically exposed. * No test is performed after the build. --- Builds/Docker/Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Builds/Docker/Dockerfile diff --git a/Builds/Docker/Dockerfile b/Builds/Docker/Dockerfile new file mode 100644 index 000000000..554f2ab70 --- /dev/null +++ b/Builds/Docker/Dockerfile @@ -0,0 +1,30 @@ +# rippled + +# use the ubuntu base image +FROM ubuntu +MAINTAINER Roberto Catini roberto.catini@gmail.com + +# make sure the package repository is up to date +RUN apt-get update +RUN apt-get -y upgrade + +# install the dependencies +RUN apt-get -y install git scons pkg-config protobuf-compiler libprotobuf-dev libssl-dev libboost1.55-all-dev + +# download source code from official repository +RUN git clone https://github.com/ripple/rippled.git src; cd src/; git checkout master + +# compile +RUN cd src/; scons build/rippled + +# move to root directory and strip +RUN cp src/build/rippled rippled; strip rippled + +# copy default config +RUN cp src/doc/rippled-example.cfg rippled.cfg + +# clean source +RUN rm -r src + +# launch rippled when launching the container +ENTRYPOINT ./rippled