Permalink
Browse files

added more build files

  • Loading branch information...
1 parent fd9fc01 commit dd17e5543a7647456807e8087a2af0132933cdf7 @pelger committed May 15, 2014
Showing with 51 additions and 3 deletions.
  1. +10 −0 buildhist.sh
  2. +10 −0 buildreal.sh
  3. +1 −2 docker/doc.dockerfile
  4. +14 −0 docker/hist.dockerfile
  5. +15 −0 docker/real.dockerfile
  6. +1 −1 srv/hist-srv.js
View
@@ -0,0 +1,10 @@
+#!/bin/sh
+mkdir -p build/srv/hist/lib
+mkdir -p build/srv/hist/srv
+cp lib/* build/srv/hist/lib
+cp srv/hist-srv.js build/srv/hist/srv
+cp package.json build/srv/hist
+cp docker/doc.dockerfile build/srv/hist/Dockerfile
+cd build/srv/hist
+npm install
+echo TARGET:build/srv/hist
View
@@ -0,0 +1,10 @@
+#!/bin/sh
+mkdir -p build/srv/real/lib
+mkdir -p build/srv/real/srv
+cp lib/* build/srv/real/lib
+cp srv/real-srv.js build/srv/real/srv
+cp package.json build/srv/real
+cp docker/doc.dockerfile build/srv/real/Dockerfile
+cd build/srv/real
+npm install
+echo TARGET:build/srv/real
View
@@ -11,6 +11,5 @@ RUN apt-get install -y nodejs
ADD . /
EXPOSE 3002
-#CMD /usr/bin/node /srv/doc-srv
-CMD echo "This is a test."
+CMD /usr/bin/node /srv/doc-srv
View
@@ -0,0 +1,14 @@
+# 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 /usr/bin/node /srv/hist-srv
View
@@ -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 /usr/bin/node /srv/real-srv
+
View
@@ -1,7 +1,7 @@
var redis_host = process.env.REDIS_HOST||'127.0.0.1'
require('seneca')()
- .use('level-store',{folder:'../data/hist'})
+// .use('level-store',{folder:'../data/hist'})
.use('../lib/hist.js')
// .listen({type:'pubsub',host:redis_host})
.listen({port:9000})

0 comments on commit dd17e55

Please sign in to comment.