Skip to content

Instantly share code, notes, and snippets.

@lukrizal
Last active August 16, 2016 11:39
Show Gist options
  • Save lukrizal/f163b896572307e14d8f80448002774f to your computer and use it in GitHub Desktop.
Save lukrizal/f163b896572307e14d8f80448002774f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
yum update
curl -fsSL https://get.docker.com/ | sh
service docker start
groupadd docker
useradd web
usermod -aG docker root
usermod -aG docker web
yum install -y git wget zsh
curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
yum -y install nodejs gcc-c++ make
yum install -y firewalld
systemctl unmask firewalld
systemctl enable firewalld
systemctl start firewalld
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
passwd web && su - web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment