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. 3
      aws-scripts/user-data.sh
  6. 1
      aws-setup/copy_code.sh

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

@ -1,14 +1,6 @@
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
cd /home/ec2-user/
mkdir -p projects/src
# 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
@ -18,6 +10,7 @@ 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

@ -6,4 +6,5 @@ cd /home/ec2-user
wget https://aws-codedeploy-$REGION.s3.amazonaws.com/latest/install
chmod +x ./install
./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