@@ -185,10 +185,16 @@ def deploy_tarball(tar_gz_url, build_dir):
185185 to the /vector directory INSIDE the tarball."
186186 )
187187 )
188+
189+ def _raise (ex ):
190+ raise ex
191+
192+ # --config config.json=../../config.json --config config.localhost.json=./localhost.json
188193 parser .add_argument (
189- "--config" , dest = "config" , help = (
190- "Write a symlink to config.json in the extracted tarball. \
191- To this location."
194+ "--config" , action = "append" , dest = "configs" ,
195+ type = lambda kv : kv .split ("=" , 1 ) if "=" in kv else _raise (Exception ("Missing =" )), help = (
196+ "A list of configs to symlink into the extracted tarball. \
197+ For example, --config config.json=../config.json config2.json=../test/config.json"
192198 )
193199 )
194200 parser .add_argument (
@@ -212,7 +218,8 @@ def deploy_tarball(tar_gz_url, build_dir):
212218 deployer = Deployer ()
213219 deployer .bundles_path = args .bundles_dir
214220 deployer .should_clean = args .clean
215- deployer .config_location = args .config
221+ deployer .config_locations = dict (args .configs ) if args .configs else {}
222+
216223
217224 # we don't pgp-sign jenkins artifacts; instead we rely on HTTPS access to
218225 # the jenkins server (and the jenkins server not being compromised and/or
@@ -225,13 +232,13 @@ def deploy_tarball(tar_gz_url, build_dir):
225232 deploy_tarball (args .tarball_uri , build_dir )
226233 else :
227234 print (
228- "Listening on port %s. Extracting to %s%s. Symlinking to %s. Jenkins URL: %s. Config location : %s" %
235+ "Listening on port %s. Extracting to %s%s. Symlinking to %s. Jenkins URL: %s. Config locations : %s" %
229236 (args .port ,
230237 arg_extract_path ,
231238 " (clean after)" if deployer .should_clean else "" ,
232239 arg_symlink ,
233240 arg_jenkins_url ,
234- deployer .config_location ,
241+ deployer .config_locations ,
235242 )
236243 )
237244 app .run (host = "0.0.0.0" , port = args .port , debug = True )
0 commit comments