Created
January 30, 2011 04:05
-
-
Save botchagalupe/802516 to your computer and use it in GitHub Desktop.
Hack Day NYC Go Project Notes
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
Application to build and deploy | |
https://github.com/grahambrooks/bvira | |
Nodes | |
ec2-72-44-36-76.compute-1.amazonaws.com <--- Tomcat?? | |
ec2-184-73-9-162.compute-1.amazonaws.com<--- dead | |
ec2-50-16-60-233.compute-1.amazonaws.com<--- Goserver | |
ec2-174-129-120-136.compute-1.amazonaws.com | |
ec2-174-129-173-166.compute-1.amazonaws.com | |
TEAM A Workstation | |
50.16.134.234 | |
GO Install | |
dpkg -i go-server-2.1.0-11943.deb | |
dpkg -i go-agent-2.1.0-11943.deb | |
Put the license key info here /etc/go/cruise-config.xml | |
Now please edit /etc/default/go-agent and set GO_SERVER to the IP address of your Go Server. | |
Once that is done start the Go Agent with '/etc/init.d/go-agent start' | |
git does not appear to be on the default path /usr/bin/git | |
=== References === | |
http://help.opscode.com/kb/otherhelp/build-a-java-web-stack | |
Resources | |
http://wiki.opscode.com/display/chef/Resources | |
http://www.thoughtworks-studios.com/go/2.1/help/installing_go_server.html | |
Go download url: | |
http://twist.thoughtworks.com/go/2.1.1/go-server-2.1.0-11943.deb | |
http://twist.thoughtworks.com/go/2.1.1/go-agent-2.1.0-11943.deb | |
Steps: | |
knife cookbook create go | |
knife cookbook site vendor java | |
go recipe | |
------------ | |
include_recipe "java" | |
remote_file "#{Chef::Config[:file_cache_path]}/go-server.deb" do | |
source "http://twist.thoughtworks.com/go/2.1.1/go-server-2.1.0-11943.deb" | |
mode "0644" | |
end | |
package "go" do | |
action :install | |
provider Chef::Provider::Package::Dpkg | |
source "#{Chef::Config[:file_cache_path]}/go-server.deb" | |
end | |
Check cookbooks/go/deploy.rb for a possible deployment scenario | |
----------- | |
Update the metdata.rb | |
depends "java" | |
knife cookbook upload go | |
update attributes/default.rb | |
default["java"]["install_flavor"] = "openjdk" | |
knife cookbook upload java | |
knife role from file goserver.rb | |
# For Tomcat | |
knife cookbook site vendor tomcat | |
knife cookbook site vendor apt | |
knife cookbook site vendor jpackage | |
knife cookbook upload tomcat | |
knife cookbook upload apt | |
knife cookbook upload jpackage | |
Go url: | |
http://50.16.60.233:8153 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment