https://github.com/plotly/plotly.js
Raw File
Tip revision: 51228fbc38b181cea890ace6e272f939121d4362 authored by Étienne Tétreault-Pinard on 26 May 2016, 20:02:41 UTC
1.12.0
Tip revision: 51228fb
test_export.sh
#! /bin/bash
#
# TODO adapt this for Windows
#
# ===============================================================================

CONTAINER_NAME="imagetest"  # same as in docker-compose.yml

# create/run/start docker container with:
#   $ docker-compose up -d

CMD=(
    "cd /var/www/streambed/image_server/plotly.js &&"
    "cp -f test/image/index.html ../server_app/index.html &&"
    "supervisorctl restart nw1 && "
    "wget --server-response --spider --tries=10 --retry-connrefused http://localhost:9010/ping &&"
    "node test/image/export_test.js $1"
)

docker exec -i $CONTAINER_NAME /bin/bash -c "${CMD[*]}"
back to top