LoginSignup
0
1

More than 5 years have passed since last update.

Itamaeでgoをインストールする

Last updated at Posted at 2017-02-03

環境

  • Ubuntu16.04(amd64)

レシピ

# cookbooks/go/default.rb:

execute "install go" do
  cwd "/tmp"
  command <<-EOC
    wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz
    tar -C /usr/local -xzf go1.7.5.linux-amd64.tar.gz
    rm -rf go1.7.5.linux-amd64.tar.gz
    export PATH=$PATH:/usr/local/go/bin
    echo 'export PATH=$PATH:/usr/local/go/bin' >> /etc/profile
  EOC
  not_if "test -e /usr/local/go"
end

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1