add docker-compose cleanup and component names to build instructions

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/77c8ad07
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/77c8ad07
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/77c8ad07

Branch: refs/heads/master
Commit: 77c8ad078a6e9925a6b780323bcb377611753793
Parents: c5b7cd1
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 11:29:25 2017 -0700

----------------------------------------------------------------------
 BUILD.md | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/77c8ad07/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`.

Reply via email to