aboutsummaryrefslogtreecommitdiff
path: root/arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh
diff options
context:
space:
mode:
authorMhd Sulhan <ms@kilabit.info>2016-01-14 17:32:08 +0700
committerMhd Sulhan <ms@kilabit.info>2016-01-14 17:32:08 +0700
commitf6936f89a0b620bc65050d83aa2ea9a1bcb32655 (patch)
tree7e92667414c3fb17bad475430e0352a94b38ea3d /arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh
parent9401962b4b492f8c0c165a351d58587f86828acd (diff)
downloadarch-docker-f6936f89a0b620bc65050d83aa2ea9a1bcb32655.tar.xz
Add new image for sailsjs stack with nodejs 0.12.9.
This image include: pm2, grunt-cli, gulp, bower.
Diffstat (limited to 'arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh')
-rwxr-xr-xarch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh b/arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh
new file mode 100755
index 0000000..fbbe38b
--- /dev/null
+++ b/arch-base-nodejs-0.12.9/bootstrap_base_nodejs.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+NVM_DIR=/root/.nvm
+NODE_VERSION=v0.12.9
+
+[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
+
+## create symlink to python
+cd /usr/bin && ln -s python2 python
+cd
+
+nvm install ${NODE_VERSION}
+nvm alias default ${NODE_VERSION}
+nvm use default
+
+## Set path
+export PATH=$PATH:`npm bin -g`
+
+echo ">>> installing pm2"
+npm install -g pm2
+
+echo ">>> installing grunt-cli"
+npm install -g grunt-cli
+
+echo ">>> installing gulp"
+npm install -g gulp
+
+echo ">>> installing bower"
+npm install -g bower
+
+echo ">>> installing sails"
+npm install -g sails --ignore-scripts