tree: 6102532ff7fe8667f1783f84bd58a9ac5ddf7413 [path history] [tgz]
  1. build.sh
  2. functions.sh
  3. README.md
build/README.md

Rpm Build Instructions

rpm files for all sub-projects can be built using the file build/build.sh. If this script is given parameters, it will build only those projects specified on the command line, e.g. $ ./build/build.sh traffic_ops. The prerequisites for each sub-project are listed below.

These build scripts depend on the text in the VERSION file along with the BUILD_NUMBER described below to name each rpm.

The build scripts use environment variables to control how the build is done. These have sensible defaults listed below, and it is recommended to not override them:

  • WORKSPACE
    • defaults to the top level of the traffic_control directory. The dist and rpmbuild directories are created in this directory during the rpm build process.
  • BUILD_NUMBER
    • generates build number from the number of commits on the current git branch followed by the 8 character short commit hash of the last commit on the branch.This number is used to create the rpm version, e.g. traffic_ops.1.2.0.1723.a18e2bb7.

At the conclusion of the build, all rpms are copied into the $WORKSPACE/dist directory.

Prerequisites for building:

all sub-projects

  • CentOS 6.x
  • rpmbuild (yum install rpm-build)
  • git 1.7.12 or higher

traffic_ops:

  • perl 5.10 or higher
  • go 1.4 or higher

traffic_stats:

  • go 1.4 or higher

traffic_monitor and traffic_router:

  • jdk 6.0 or higher
  • apache-maven 3.3.1 or higher