Created
November 16, 2013 07:14
-
-
Save davidascher/7497031 to your computer and use it in GitHub Desktop.
Not quite working Dockerfile for Hoodie
This file contains hidden or 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
| FROM ubuntu | |
| MAINTAINER David Ascher <[email protected]> | |
| # Get us to a stable place | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
| RUN apt-get update | |
| RUN apt-get upgrade -y | |
| RUN apt-get install -y python-software-properties | |
| RUN apt-get remove couchdb | |
| # CouchDB dependencies | |
| ### make sure you have a couchdb user for the daemon, and couchb group also | |
| ## get developer tools dependencies | |
| RUN apt-get install -y g++ make | |
| RUN apt-get install -y erlang-dev erlang-manpages erlang-base-hipe erlang-eunit erlang-nox erlang-xmerl erlang-inets | |
| ### couchdb developer dependencies | |
| RUN apt-get install -y libmozjs185-dev libicu-dev libcurl4-gnutls-dev libtool | |
| ### unpack source | |
| RUN apt-get install -y wget | |
| RUN cd /tmp && wget http://mirror.csclub.uwaterloo.ca/apache/couchdb/source/1.4.0/apache-couchdb-1.4.0.tar.gz && tar xvzf apache-couchdb-1.4.0.tar | |
| .gz | |
| RUN cd /tmp/apache-couchdb-1.4.0 && ./configure && make && make install | |
| ### install logrotate and initd scripts | |
| RUN ln -s /usr/local/etc/logrotate.d/couchdb /etc/logrotate.d/couchdb | |
| RUN ln -s /usr/local/etc/init.d/couchdb /etc/init.d | |
| #RUN update-rc.d couchdb defaults | |
| RUN apt-get install -y git | |
| # node | |
| RUN add-apt-repository ppa:chris-lea/node.js | |
| RUN apt-get update -y | |
| RUN apt-get install -y nodejs | |
| RUN npm install -g hoodie-cli | |
| # Alt dependencies | |
| RUN apt-get install -y wget | |
| EXPOSE 6001 6002 | |
| # this avoids asking for couch admin pw | |
| ENV CI true | |
| RUN /usr/bin/node /usr/bin/hoodie new theapp | |
| WORKDIR theapp | |
| RUN npm install | |
| CMD /usr/bin/node /usr/bin/hoodie start -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment