datacoda / docker-websocket-echo Goto Github PK
View Code? Open in Web Editor NEWA test Docker container for a websocket echo server
License: MIT License
A test Docker container for a websocket echo server
License: MIT License
At the connection using a simple js client:
2017-03-10 14:06:02+0000 [autobahn.twisted.websocket.WebSocketServerFactory] Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/twisted/python/log.py", line 84, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 597, in _doReadOrWrite
why = selectable.doRead()
--- ---
File "/usr/local/lib/python2.7/site-packages/twisted/internet/tcp.py", line 1067, in doRead
protocol = self.factory.buildProtocol(self._buildAddr(addr))
File "/usr/local/lib/python2.7/site-packages/twisted/internet/protocol.py", line 135, in buildProtocol
p = self.protocol()
File "/usr/local/lib/python2.7/site-packages/autobahn/websocket/protocol.py", line 665, in init
self.is_closed = txaio.create_future()
File "/usr/local/lib/python2.7/site-packages/txaio/_unframework.py", line 43, in _throw_usage_error
"To use txaio, you must first select a framework "
exceptions.RuntimeError: To use txaio, you must first select a framework with .use_twisted() or .use_asyncio()
The docker build
fails. Have you considered starting from the official Python image instead? https://hub.docker.com/_/python/
$ docker build -t echo .
Sending build context to Docker daemon 54.78 kB
Step 0 : FROM stackbrew/ubuntu:saucy
Pulling repository docker.io/stackbrew/ubuntu
195eb90b5349: Download complete
511136ea3c5a: Download complete
f127542f0b61: Download complete
fae16849ebe2: Download complete
0f4aac48388f: Download complete
209ea56fda6d: Download complete
Status: Downloaded newer image for stackbrew/ubuntu:saucy
---> 195eb90b5349
Step 1 : MAINTAINER Ted Chen <[email protected]>
---> Running in 828c49037f64
---> a4168dca5a58
Removing intermediate container 828c49037f64
Step 2 : RUN echo "deb http://archive.ubuntu.com/ubuntu saucy main universe" > /etc/apt/sources.list && apt-get update && apt-get upgrade -y -o DPkg::Options::=--force-confold
---> Running in 29a7dbce722b
Ign http://archive.ubuntu.com saucy InRelease
Ign http://archive.ubuntu.com saucy Release.gpg
Ign http://archive.ubuntu.com saucy Release
Ign http://archive.ubuntu.com saucy/main amd64 Packages/DiffIndex
Ign http://archive.ubuntu.com saucy/universe amd64 Packages/DiffIndex
Err http://archive.ubuntu.com saucy/main amd64 Packages
404 Not Found [IP: 91.189.91.13 80]
Err http://archive.ubuntu.com saucy/universe amd64 Packages
404 Not Found [IP: 91.189.91.13 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/saucy/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.13 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/saucy/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.13 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c echo "deb http://archive.ubuntu.com/ubuntu saucy main universe" > /etc/apt/sources.list && apt-get update && apt-get upgrade -y -o DPkg::Options::=--force-confold' returned a non-zero code: 100
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.