add ability to publish range of ports

Closes #8899
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
Need a comma after e.g., and code needs to be in backticks (`). Also below. Thanks.