Minh Doan 7 years ago
commit 9dff360db0
  1. 2
      appspec.yml
  2. 0
      aws-scripts/parse_json.py
  3. 13
      aws-scripts/setup_golang.sh
  4. 0
      aws-scripts/setup_instances.sh
  5. 1
      aws-scripts/user-data.sh
  6. 1
      aws-setup/copy_code.sh

@ -2,7 +2,7 @@ version: 0.0
os: linux os: linux
files: files:
- source: / - source: /
destination: /home/ec2-user/ destination: /home/ec2-user/projects/src
hooks: hooks:
BeforeInstall: BeforeInstall:
- location: aws-scripts/say_hello.sh - location: aws-scripts/say_hello.sh

@ -1,14 +1,6 @@
sudo yum update -y cd /home/ec2-user/
sudo yum install -y golang mkdir -p projects/src
# 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 update -y
sudo yum install -y golang sudo yum install -y golang
@ -18,6 +10,7 @@ export GOROOT=/usr/lib/golang
# GOPATH is the location of your work directory # GOPATH is the location of your work directory
export GOPATH=$HOME/projects export GOPATH=$HOME/projects
# PATH in order to access go binary system wide # PATH in order to access go binary system wide
export PATH=$PATH:$GOROOT/bin export PATH=$PATH:$GOROOT/bin

@ -7,3 +7,4 @@ wget https://aws-codedeploy-$REGION.s3.amazonaws.com/latest/install
chmod +x ./install chmod +x ./install
./install auto ./install auto
mkdir projects mkdir projects
mkdir projects/src

@ -1 +0,0 @@
scp -i main.pem -r ~/Documents/goworkspace/src/github.com/harmony-benchmark/ ec2-user@ec2-34-219-218-239.us-west-2.compute.amazonaws.com:/home/ec2-user/projects/
Loading…
Cancel
Save