Kitura / Kitura-WebSocket

WebSocket support for Kitura
Apache License 2.0
68 stars 30 forks source link

Add Autobahn echo server with Dockerfile #101

Open djones6 opened 5 years ago

djones6 commented 5 years ago

While testing Kitura-WebSocket, I wanted to run the Autobahn tests against my changes. The existing guide in AutobahnTests.md is helpful, but it's a pain to have to install all the dependencies for the client, deal with versions of Python, missing macOS headers and so on.

I found that there's an autobahn docker image (https://github.com/crossbario/autobahn-testsuite/tree/master/docker) that we can use for the client. And we can do everything within Docker if we dockerize the echo server and run both on a network.

To that end, I've created an Autobahn subproject containing a Dockerfile and a run.sh which wil build the server into a wsserver image, run that as a container on a Docker network called autobahn, and then run the autobahn client (on the same network) targetting wsserver:9001. At the end of the run, it'll open the HTML report that the client generates.

CLAassistant commented 4 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.