add docker-compose cleanup and component names to build instructions (cherry picked from commit 77c8ad078a6e9925a6b780323bcb377611753793)
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/20d7e37b Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/20d7e37b Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/20d7e37b Branch: refs/heads/1.8.x Commit: 20d7e37b57b9aa47e7731595641920de268ea219 Parents: ff5a63a Author: Dan Kirkwood <dang...@gmail.com> Authored: Fri Jan 6 10:58:54 2017 -0700 Committer: Dan Kirkwood <dang...@gmail.com> Committed: Fri Jan 6 13:22:35 2017 -0700 ---------------------------------------------------------------------- BUILD.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/20d7e37b/BUILD.md ---------------------------------------------------------------------- diff --git a/BUILD.md b/BUILD.md index db2adb2..aabefe9 100644 --- a/BUILD.md +++ b/BUILD.md @@ -14,10 +14,24 @@ are automatically loaded into the image used to build each component. From the top level of the incubator-trafficcontrol directory. Use the BRANCH environment variable to specify the version of Traffic Control to build. One or more components (with \_build suffix added) can be added on the command -line: +line. -> $ BRANCH=1.8.x docker-compose -f infrastructure/docker/build/docker-compose.yml up traffic\_monitor\_build +Clean up any previously-built docker containers: +> $ docker-compose -f infrastructure/docker/build/docker-compose.yml down -v -If no component names are provided here, all components will be built. +And images: +> $ docker images | awk '/traffic\_.\*\_build/ { print $3 }' | xargs docker rmi -f +Create and run new build containers: +> $ BRANCH=1.8.x docker-compose -f infrastructure/docker/build/docker-compose.yml up [ container name ...] +Container names can be one or more of these: +* `traffic_monitor_build` +* `traffic_ops_build` +* `traffic_portal_build` +* `traffic_router_build` +* `traffic_stats_build` + +If no component names are provided on the command line, all components will be built. + +All rpms are copied to the following directory: `infrastructure/docker/build/artifacts`.