forked from kstaken/dockerfile-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up and a combined nodejs + mongo example
- Loading branch information
Showing
7 changed files
with
46 additions
and
9 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# Currently installs couchdb 1.3.1 | ||
|
||
FROM ubuntu | ||
MAINTAINER Kimbro Staken "[email protected]" | ||
MAINTAINER Kimbro Staken | ||
|
||
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list | ||
RUN apt-get -y update | ||
|
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,5 +1,5 @@ | ||
FROM ubuntu | ||
MAINTAINER Kimbro Staken "[email protected]" | ||
MAINTAINER Kimbro Staken | ||
|
||
RUN apt-get install -y python-software-properties python | ||
RUN add-apt-repository ppa:chris-lea/node.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Install a more up to date mongodb than what is included in the default ubuntu repositories. | ||
|
||
FROM ubuntu | ||
MAINTAINER Kimbro Staken "[email protected]" | ||
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 | ||
|
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,23 @@ | ||
FROM ubuntu | ||
MAINTAINER Kimbro Staken | ||
|
||
RUN apt-get install -y python-software-properties python python-setuptools ruby rubygems | ||
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-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 -y update | ||
RUN apt-get -y install mongodb-10gen | ||
|
||
RUN easy_install supervisor | ||
RUN echo_supervisord_conf > /etc/supervisord.conf | ||
RUN printf "[include]\nfiles = /var/www/Supervisorfile\n" >> /etc/supervisord.conf | ||
|
||
ADD . /var/www | ||
|
||
RUN cd /var/www ; npm install | ||
|
||
CMD ["/usr/local/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"] |
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,12 @@ | ||
[program:mongodb] | ||
command=/usr/bin/mongod --config /etc/mongodb.conf | ||
numprocs=1 | ||
autostart=true | ||
autorestart=true | ||
|
||
[program:node] | ||
command=/usr/bin/node /var/www/app.js | ||
numprocs=1 | ||
directory=/var/www/ | ||
autostart=true | ||
autorestart=true |
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,5 +1,5 @@ | ||
FROM ubuntu | ||
MAINTAINER Kimbro Staken "[email protected]" | ||
MAINTAINER Kimbro Staken | ||
|
||
RUN apt-get install -y python-software-properties python | ||
RUN add-apt-repository ppa:chris-lea/node.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,15 +27,17 @@ | |
# connecting you to an already running container. | ||
|
||
FROM ubuntu | ||
MAINTAINER Kimbro Staken "[email protected]" | ||
MAINTAINER Kimbro Staken | ||
|
||
RUN echo "0.2" > /version | ||
|
||
ADD https://raw.github.com/kstaken/dockerfile-examples/master/rethinkdb-install.sh /rethinkdb-install.sh | ||
RUN /bin/bash /rethinkdb-install.sh | ||
#ADD https://raw.github.com/kstaken/dockerfile-examples/master/rethinkdb-install.sh /rethinkdb-install.sh | ||
ADD rethinkdb-install.sh / | ||
|
||
#RUN /bin/bash /rethinkdb-install.sh | ||
|
||
EXPOSE 8100:8100 | ||
|
||
ENTRYPOINT ["rethinkdb"] | ||
#ENTRYPOINT ["rethinkdb"] | ||
|
||
CMD ["-d", "/var/rethinkdb/db", "--bind", "all", "--http-port", "8100"] | ||
#CMD ["-d", "/var/rethinkdb/db", "--bind", "all", "--http-port", "8100"] |