tree: 77950d439a7735fea0d31e884d418e7fa3cf3f18 [path history] [tgz]
  1. build_rpm.sh
  2. README.md
  3. traffic_ops.spec
  4. traffic_ops_ort.spec
  5. Vagrantfile
traffic_ops/build/README.md

Create a TO RPM with Dependencies

  1. Download repo Traffic Control (or from your favorite repo)
$ git clone http://github.com/Comcast/traffic_control.git
  1. Bring up Vagrant environment (http://www.vagrantup.com)
$ cd <repo dir>
$ cp traffic_control/traffic_ops/build/Vagrantfile ./
$ vagrant up
  1. ssh into vagrant environment
$ vagrant ssh
  1. OPTIONAL Set environment variables to control build. All are automatically set to reasonable defaults (in parentheses) and it is recommended to leave them unset. They can be overridden if necessary:
    • BRANCH (master)
    • HOTFIX_BRANCH (none)
    • WORKSPACE (top level of local repo tree -- workspace must be a clone of the repository)
    • BUILD_NUMBER (# of commits in branch + last commit identifier)
  2. Build the RPM
$ cd /vagrant/traffic_control/traffic_ops/build
$ ./build_rpm.sh

Notes:
This is known to work with CentOS 6.7 as the Vagrant environment.