How to build a testing branch AMI - lmandres/appscale-raspberry-pi GitHub Wiki

  • Sign into the Amazon AWS system and use the EC2 console
  • Start an AMI on EC2 with a specific key (that you have previously added):
  • Make sure your AMI has security settings that allow SSH, HTTP and HTTPS
  • A small instance should be enough to get AppScale running
  • Obtain the DNS name of the instantiated image from the EC2 console and ssh into it using your key.
  • Run "sudo apt-get update"
  • Run "sudo apt-get install git-core"
  • Run "git" to make sure git is installed properly
  • Run "git clone git://github.com/AppScale/appscale.git --branch testing" to check out AppScale code
  • Run "cd /root/appscale"
  • To check out a particular branch:
    • Run "git fetch origin testing"
    • Run "git checkout -b testing origin/testing"
  • Run "cd /root"
  • Run "git clone git://github.com/AppScale/appscale-tools --branch testing"
  • Run "cd /root/appscale-tools"
  • To check out a particular branch (must match appscale branch)
    • Run "git fetch origin testing"
    • Run "git checkout -b testing origin/testing"
  • Run "sudo bash debian/appscale_build.sh" to build the tools
  • cd /root/appscale
  • Run "sudo bash debian/appscale_build.sh" to build appscale
  • Once appscale has built (this can take a while), go to the AWS management console and select your image. Right click your image and choose "Create Image". In the volumes window, select root image, and select 10GB. This will create an AMI based on your running instance. You can see this image on the left panel of the management console under "Images".