Minh Doan 7 years ago
commit 3148bcd704
  1. 4
      appspec.yml
  2. 30
      aws-scripts/setup_golang.sh
  3. 22
      aws-setup/AppSpec.yml

@ -9,8 +9,8 @@ hooks:
timeout: 10
runas: root
AfterInstall:
- location: aws-scripts/say_hello.sh #maybe start the server
timeout: 10
- location: aws-scripts/setup_golang.sh #setup golang
timeout: 300
runas: root
ApplicationStart:
- location: aws-scripts/say_hello.sh #maybe start the server.

@ -0,0 +1,30 @@
sudo yum update -y
sudo yum install -y golang
# GOROOT is the location where Go package is installed on your system
export GOROOT=/usr/lib/golang
# GOPATH is the location of your work directory
export GOPATH=$HOME/projects
# PATH in order to access go binary system wide
Aloks-iMac:harmony-benchmark alokkothari$ cat /Users/alokkothari/Documents/goworkspace/src/github.com/harmony-benchmark/setup_golang.sh
sudo yum update -y
sudo yum install -y golang
# GOROOT is the location where Go package is installed on your system
export GOROOT=/usr/lib/golang
# GOPATH is the location of your work directory
export GOPATH=$HOME/projects
# PATH in order to access go binary system wide
export PATH=$PATH:$GOROOT/bin
# GOROOT is the location where Go package is installed on your system
export GOROOT=/usr/lib/golang
# GOPATH is the location of your work directory
export GOPATH=$HOME/projects
# PATH in order to access go binary system wide

@ -1,22 +0,0 @@
version: 0.0
os: linux
files:
- source: ../
destination: /projects/
hooks:
BeforeInstall:
- location: aws-scripts/say_hello.sh
timeout: 300
runas: root
AfterInstall:
- location: aws-scripts/say_hello.sh #maybe start the server
timeout: 300
runas: root
ApplicationStart:
- location: aws-scripts/say_hello.sh #maybe start the server.
timeout: 300
runas: root
ApplicationStop:
- location: aws-scripts/say_hello.sh
timeout: 300
runas: root
Loading…
Cancel
Save