File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ module.exports = {
7272 pathToSetPlotConfig : path . join ( pathToBuild , 'set_plot_config.js' ) ,
7373
7474 testContainerName : process . env . PLOTLYJS_TEST_CONTAINER_NAME || 'imagetest' ,
75+ testContainerPort : '9010' ,
7576 testContainerUrl : 'http://localhost:9010/' ,
7677 testContainerHome : '/var/www/streambed/image_server/plotly.js' ,
7778
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ containerCommands.dockerRun = [
2323 'docker run -d' ,
2424 '--name' , constants . testContainerName ,
2525 '-v' , constants . pathToRoot + ':' + constants . testContainerHome ,
26- '-p' , constants . testContainerUrl ,
26+ '-p' , constants . testContainerPort + ':' + constants . testContainerPort ,
2727 'plotly/testbed:latest'
2828] . join ( ' ' ) ;
2929
30- containerCommands . getRunCmd = function ( commands , isCI ) {
30+ containerCommands . getRunCmd = function ( isCI , commands ) {
3131 var _commands = Array . isArray ( commands ) ? commands . slice ( ) : [ commands ] ;
3232
3333 if ( isCI ) return getRunCI ( _commands ) ;
@@ -52,10 +52,11 @@ function getRunCI(commands) {
5252 commands = [ 'export CIRCLECI=1' , containerCommands . cdHome ] . concat ( commands ) ;
5353
5454 return [
55+ 'sudo' ,
5556 'lxc-attach -n' ,
56- '$(docker inspect --format \'{{.Id}}\'' + constants . testContainerName + ')' ,
57+ '$(docker inspect --format \'{{.Id}}\' ' + constants . testContainerName + ')' ,
5758 '-- bash -c' ,
58- commands . join ( ' && ' )
59+ '"' + commands . join ( ' && ' ) + '"'
5960 ] . join ( ' ' ) ;
6061}
6162
You can’t perform that action at this time.
0 commit comments