diff --git a/appspec.yml b/appspec.yml index ebae4cc96..28749a9aa 100644 --- a/appspec.yml +++ b/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. diff --git a/aws-scripts/setup_golang.sh b/aws-scripts/setup_golang.sh new file mode 100644 index 000000000..3b7c1be23 --- /dev/null +++ b/aws-scripts/setup_golang.sh @@ -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 \ No newline at end of file diff --git a/aws-setup/AppSpec.yml b/aws-setup/AppSpec.yml deleted file mode 100644 index b9c76b877..000000000 --- a/aws-setup/AppSpec.yml +++ /dev/null @@ -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 \ No newline at end of file