warehouse: support passing port parameter

Change-Id: Id24d66b06041131ca228b60eaeef0898ad0918c7