deacix
8 years ago
7 changed files with 415 additions and 422 deletions
@ -1,2 +1,3 @@
@@ -1,2 +1,3 @@
|
||||
/build-buffer |
||||
node_modules |
||||
.idea |
||||
|
@ -1,36 +0,0 @@
@@ -1,36 +0,0 @@
|
||||
# |
||||
# Dockerfile for building Twister peer-to-peer micro-blogging |
||||
# |
||||
|
||||
FROM ubuntu:14.04 |
||||
|
||||
# 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 |
||||
RUN cd twister-core && \ |
||||
./bootstrap.sh && \ |
||||
make |
||||
|
||||
RUN mkdir ~/.twister |
||||
RUN echo -e "rpcuser=user\nrpcpassword=pwd\nhtmldir=~/twister-react" > ~/.twister/twister.conf |
||||
RUN chmod 600 ~/.twister/twister.conf |
||||
|
||||
RUN git clone https://github.com/Tschaul/twister-react.git |
||||
RUN git clone https://github.com/Tschaul/twister-lib-js.git |
||||
RUN git clone https://github.com/digital-dreamer/twister-proxy.git |
||||
|
||||
RUN apt-get install -y nodejs nodejs-legacy npm |
||||
|
||||
RUN npm install -g browserify react-tools |
||||
|
||||
RUN cd twister-lib-js \ npm install |
||||
|
||||
RUN cd twister-react \ npm install \ npm run pull-lib-and-build |
||||
|
||||
RUN cd twister-proxy \ npm install |
||||
|
||||
COPY settings.json twister-proxy/ |
||||
|
||||
|
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
version: "2" |
||||
services: |
||||
twister: |
||||
build: . |
||||
ports: |
||||
- 80 |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
[supervisord] |
||||
nodaemon=true |
||||
|
||||
[program:twisterd] |
||||
command=/opt/twister-core/twisterd |
||||
user=root |
||||
redirect_stderr=true |
||||
stdout_logfile=/dev/fd/1 |
||||
stdout_logfile_maxbytes=0 |
||||
priority=1 |
||||
|
||||
[program:twister-proxy] |
||||
command=node twister-proxy.js |
||||
user=root |
||||
directory=/opt/twister-proxy |
||||
redirect_stderr=true |
||||
stdout_logfile=/dev/fd/1 |
||||
stdout_logfile_maxbytes=0 |
||||
priority=2 |
Loading…
Reference in new issue