Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions docker-files/api_base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
#
# api_base Dockerfile
# Author anandkumarpatel
##
#

# Pull base image.
FROM registry.runnable.com/runnable/base:latest

WORKDIR /
# Node.js @ 10.28
$ npm @ 2.1.8

# install required packages
# lsof: required for open file monitoring

# Installing Node.js
RUN wget http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz
RUN tar xvf node-v*.tar.gz
WORKDIR node-v0.10.29/
RUN ./configure
RUN make -j16
RUN make install
RUN wget http://nodejs.org/dist/v0.10.28/node-v0.10.28.tar.gz \
&& tar xvf node-v*.tar.gz \
&& cd node-v0.10.28 \
&& ./configure \
&& make -j16 \
&& make install \
&& npm install -g npm@2.1.8 \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sudo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed, all commands are run as root

&& apt-get install lsof
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@
"sauron": "git+ssh://git@github.com:codenow/sauron#v0.0.8",
"server-destroy": "^1.0.0"
},
"engine": "node >= 0.10.5",
"engineStrict": true,
"engine": {
"node" : "0.10.28",
"npm" : "2.1.8"
},
"scripts": {
"test-watch": "echo use 'bdd-watch' or 'unit-watch'",
"_bdd": "npm run clear; NODE_PATH=./lib NODE_ENV=test lab -v -l -m 200 -e test",
Expand Down