Skip to content

Commit 9c6f4e5

Browse files
committed
using supervisor instead
1 parent 43b7098 commit 9c6f4e5

File tree

6 files changed

+9
-13
lines changed

6 files changed

+9
-13
lines changed

circle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ machine:
1212

1313
dependencies:
1414
pre:
15-
- docker pull plotly/imageserver:latest
15+
- docker pull plotly/imageserver:candidate
1616
post:
1717
- npm run cibuild
18-
- docker run -d --name myimageserver -v $PWD:/var/www/streambed/image_server/plotly.js -p 9010:9010 plotly/imageserver:latest; sleep 20
18+
- docker run -d --name myimageserver -v $PWD:/var/www/streambed/image_server/plotly.js -p 9010:9010 plotly/imageserver:candidate
1919

2020
test:
2121
override:

dist/plotly-geo-assets.js

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
dev:
1515
container_name: imagetest
16-
image: plotly/imageserver:latest
16+
image: moi/testing #plotly/imageserver:latest
1717
volumes:
1818
- .:/var/www/streambed/image_server/plotly.js
1919
ports:

tasks/baseline.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ CONTAINER_NAME="imagetest" # same as in docker-compose.yml
1212
CMD=(
1313
"cd /var/www/streambed/image_server/plotly.js &&"
1414
"cp -f test/image/index.html ../server_app/index.html &&"
15-
"monit restart nw1 &&"
16-
"sleep 5 &&"
15+
"supervisorctl restart nw1 &&"
16+
"wget --server-response --spider --tries=8 --retry-connrefused http://localhost:9010/ping &&"
1717
"node test/image/make_baseline.js $1"
1818
)
1919

tasks/test_image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ CONTAINER_NAME="imagetest" # same as in docker-compose.yml
1212
CMD=(
1313
"cd /var/www/streambed/image_server/plotly.js &&"
1414
"cp -f test/image/index.html ../server_app/index.html &&"
15-
"monit restart nw1 &&"
16-
"sleep 5 &&"
15+
"supervisorctl restart nw1 && "
16+
"wget --server-response --spider --tries=8 --retry-connrefused http://localhost:9010/ping &&"
1717
"node test/image/compare_pixels_test.js $1"
1818
)
1919

test/image/compare_pixels_test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ function testMock (fileName, t) {
107107
}
108108

109109
request(options)
110+
.on('response', function() { console.log('pong') })
110111
.pipe(savedImageStream)
111112
.on('close', checkImage);
112113
}

0 commit comments

Comments
 (0)