2014-05-05 10:20:01 +00:00
|
|
|
#
|
|
|
|
# Dockerfile for building Twister peer-to-peer micro-blogging
|
|
|
|
#
|
2014-05-25 23:20:02 +00:00
|
|
|
FROM ubuntu:14.04
|
2014-05-05 10:20:01 +00:00
|
|
|
|
2014-05-25 23:20:02 +00:00
|
|
|
# Install twister-core
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y git autoconf libtool build-essential libboost-all-dev libssl-dev libdb++-dev libminiupnpc-dev && apt-get clean
|
|
|
|
#RUN git clone https://github.com/miguelfreitas/twister-core.git
|
|
|
|
ADD . /twister-core
|
|
|
|
RUN cd twister-core && \
|
|
|
|
./bootstrap.sh && \
|
|
|
|
make
|
2014-05-05 10:20:01 +00:00
|
|
|
|
2014-05-25 23:20:02 +00:00
|
|
|
# Install twister-html
|
|
|
|
RUN git clone https://github.com/miguelfreitas/twister-html.git /twister-html
|
2014-05-05 10:20:01 +00:00
|
|
|
|
2014-05-25 23:20:02 +00:00
|
|
|
# Configure HOME directory
|
|
|
|
# and persist twister data directory as a volume
|
|
|
|
ENV HOME /root
|
|
|
|
VOLUME /root/.twister
|
2014-05-05 10:20:01 +00:00
|
|
|
|
2014-05-25 23:20:02 +00:00
|
|
|
# Run twisterd by default
|
|
|
|
CMD ["/twister-core/twisterd", "-rpcuser=user", "-rpcpassword=pwd", "-rpcallowip=172.17.42.1", "-htmldir=/twister-html", "-printtoconsole"]
|
|
|
|
EXPOSE 28332
|