Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Bennett ryanbennettvoid

View GitHub Profile
View install-nodemon.sh
#!/bin/bash
sudo apt-get update && \
sudo apt-get install -y wget curl npm && \
sudo npm install -g n && \
sudo n stable && \
sudo ln -s /usr/bin/nodejs /usr/bin/node && \
sudo npm install -g nodemon
View install-docker.sh
#!/bin/bash
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates
sudo apt-key adv \
--keyserver hkp://ha.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
View gist:6acb4258e06d830539b7
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080
View ubuntu-nodemon-setup.sh
sudo apt-get update && \
sudo apt-get install -y wget curl npm && \
sudo npm install -g n && \
sudo n stable && \
sudo ln -s /usr/bin/nodejs /usr/bin/node && \
sudo npm install -g nodemon
View ubuntu-nodemon.Dockerfile
# Dockerfile for a generic Ubuntu Node.js server
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y wget curl npm
RUN npm install -g n
RUN n stable
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN npm install -g nodemon