forked from rjrodger/startupdeathclock
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
44 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
mkdir -p build/srv/doc/lib | ||
mkdir -p build/srv/doc/srv | ||
cp lib/* build/srv/doc/lib | ||
cp srv/doc-srv.js build/srv/doc/srv | ||
cp package.json build/srv/doc | ||
cp docker/doc.dockerfile build/srv/doc/Dockerfile | ||
cd build/srv/doc | ||
npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# DOCKER-VERSION 0.3.4 | ||
FROM ubuntu | ||
|
||
RUN echo "deb http://archive.ubuntu.com/ubuntu precise universe" >> /etc/apt/sources.list | ||
RUN apt-get update | ||
RUN apt-get install -y software-properties-common | ||
RUN apt-get install -y python-software-properties python g++ make | ||
RUN add-apt-repository -y ppa:chris-lea/node.js | ||
RUN apt-get update | ||
RUN apt-get install -y nodejs | ||
|
||
ADD . | ||
EXPOSE 3002 | ||
CMD node /srv/doc-srv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
var redis_host = process.env.REDIS_HOST||'127.0.0.1' | ||
var beanstalk_host = process.env.BEANSTALK_HOST||'127.0.0.1' | ||
//var redis_host = process.env.REDIS_HOST||'127.0.0.1' | ||
//var beanstalk_host = process.env.BEANSTALK_HOST||'127.0.0.1' | ||
|
||
require('seneca')() | ||
.use('jsonfile-store',{folder:'../data/doc'}) | ||
// .use('jsonfile-store',{folder:'../data/doc'}) | ||
.use('../lib/doc.js') | ||
.listen({type:'queue',pin:{role:'doc',kind:'clock',cmd:'*'},host:beanstalk_host}) | ||
.client({type:'pubsub',host:redis_host}) | ||
//.listen({type:'queue',pin:{role:'doc',kind:'clock',cmd:'*'},host:beanstalk_host}) | ||
//.client({type:'pubsub',host:redis_host}) | ||
.listen({port:9002}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
cd srv | ||
nohup node doc-srv.js & > doc.log 2>&1 | ||
nohup node hist-srv.js & > hist.log 2>&1 | ||
nohup node real-srv.js & > real.log 2>&1 | ||
cd ../web | ||
node index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters