Created
October 12, 2016 09:09
-
-
Save erikh/5926b0f5ca192cec7ddc2c672a86df42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from "golang" | |
packages = %w[ | |
zsh | |
tmux | |
build-essential | |
vim-nox | |
git | |
mercurial | |
] | |
run "apt-get update" | |
run "apt-get dist-upgrade -y" | |
run "apt-get install -y #{packages.join(" ")}" | |
run "useradd erikh -s /bin/zsh -m -d /home/erikh" | |
user "erikh" | |
workdir "/home/erikh" | |
copy ".", "config" | |
env "TERM" => "xterm-256color" | |
with_user "root" do | |
run "chown erikh:erikh config" | |
end | |
inside "/home/erikh/config" do | |
run "sh setup.sh" | |
end | |
cmd "/bin/zsh -l" | |
tag "dev" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment