Skip to content

Commit

Permalink
Tweaking the examples for demos
Browse files Browse the repository at this point in the history
  • Loading branch information
kstaken committed Jul 19, 2013
1 parent 0913f8d commit f9abea1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions mongodb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ MAINTAINER Kimbro Staken
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
RUN echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | tee -a /etc/apt/sources.list.d/10gen.list
RUN apt-get update
RUN apt-get -y install apt-utils
RUN apt-get -y install mongodb-10gen

#RUN echo "" >> /etc/mongodb.conf
Expand Down
3 changes: 2 additions & 1 deletion nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ RUN apt-get install -y python-software-properties python
RUN add-apt-repository ppa:chris-lea/node.js
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y nodejs
RUN apt-get install -y nodejs
#RUN apt-get install -y nodejs=0.6.12~dfsg1-1ubuntu1
RUN mkdir /var/www

ADD app.js /var/www/app.js
Expand Down
6 changes: 5 additions & 1 deletion nodejs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ var http = require('http');
// Configure our HTTP server to respond with Hello World to all requests.
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello from Docker\n");
text = "Running Node.js:" + process.versions.node
text += "Mongo Servers: " + process.env.MONGODB

response.end(text);

});

var port = process.env.PORT || 8080;
Expand Down

0 comments on commit f9abea1

Please sign in to comment.