setting up golang and golang paths via codedeploy

pull/3/head
alok 7 years ago
parent 1d653c7116
commit 12a5eec030
  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