diff options
author | Chris Rebert <github@chrisrebert.com> | 2015-11-02 10:27:03 +0300 |
---|---|---|
committer | Chris Rebert <github@chrisrebert.com> | 2015-11-02 10:27:03 +0300 |
commit | d9e7cbe0db920e4b4226f68bc653f697fd5593bd (patch) | |
tree | 202f28d171073b5c9cf7262f3e87775fd170deed | |
parent | e79034115c77f2e2a12d83a1f1b58315928d1beb (diff) |
begin unDockerization: setup_droplet.sh
-rwxr-xr-x | setup_droplet.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/setup_droplet.sh b/setup_droplet.sh index 52c3086..0f961bf 100755 --- a/setup_droplet.sh +++ b/setup_droplet.sh @@ -19,8 +19,16 @@ ufw allow www # not necessary for gruntworker itself ufw enable ufw status verbose -# setup Docker; written against Docker v1.2.0 -docker rmi gruntworker -docker build --tag gruntworker . 2>&1 | tee docker.build.log +# install Node.js +aptitude install build-essential # for native addons +curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - +DISTRO=$(lsb_release -c -s) +echo 'deb https://deb.nodesource.com/node_5.x ${DISTRO} main' > /etc/apt/sources.list.d/nodesource.list +echo 'deb-src https://deb.nodesource.com/node_5.x ${DISTRO} main' >> /etc/apt/sources.list.d/nodesource.list +aptitude update +aptitude install nodejs +aptitude install nodejs-legacy # out of compatibility paranoia, though I philosophically agree with Debian here + +# setup gruntworker itself cp ./gruntworker.crontab /etc/cron.d/gruntworker restart cron # until upstart goes away |