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:
At the conclusion of the build, all rpms are copied into the $WORKSPACE/dist directory.
Building using docker is experimental at this time and has not been fully vetted.
Dockerfiles for each sub-project are located in the build directory (e.g. traffic_ops/build/Dockerfile)
GITREPO (default is https://github.com/Comcast/traffic_control) and BRANCH (default is master).export GITHUB_REPO=https://github.com/myuser/traffic_control export BRANCH=feature/my-new-feature ./build/docker-build.sh