fititnt / chatops-wg-ia-python-opsdroid

ChatOps WG: Intelligent Agent with Python / Opsdroid
0 stars 0 forks source link

Create a very simple docker-compose for opsdroid #1

Open fititnt opened 6 years ago

fititnt commented 6 years ago

Via docker-run and via docker-compose still not working. Needs more work later on this.

# fititnt at bravo in /alligo/code/fititnt/chatops-wg-ia-python-opsdroid on git:master x [5:15:20]
$ docker-compose up
Starting chatopswgiapythonopsdroid_opsdroid_1 ... done
Attaching to chatopswgiapythonopsdroid_opsdroid_1
opsdroid_1  | INFO opsdroid: ========================================
opsdroid_1  | INFO opsdroid: Started application
opsdroid_1  | INFO opsdroid: ========================================
opsdroid_1  | INFO opsdroid: You can customise your opsdroid by modifying your configuration.yaml
opsdroid_1  | INFO opsdroid: Read more at: http://opsdroid.readthedocs.io/#configuration
opsdroid_1  | INFO opsdroid: Watch the Get Started Videos at: http://bit.ly/2fnC0Fh
opsdroid_1  | INFO opsdroid: Install Opsdroid Desktop at: 
opsdroid_1  | https://github.com/opsdroid/opsdroid-desktop/releases
opsdroid_1  | INFO opsdroid: ========================================
opsdroid_1  | WARNING opsdroid.loader: No databases in configuration.This will cause skills which store things inmemory to lose data when opsdroid is restarted.
opsdroid_1  | opsdroid> ERROR asyncio: Fatal read error on pipe transport
opsdroid_1  | protocol: <asyncio.streams.StreamReaderProtocol object at 0x7fb5da925f28>
opsdroid_1  | transport: <_UnixReadPipeTransport fd=0 polling>
opsdroid_1  | Traceback (most recent call last):
opsdroid_1  |   File "/usr/local/lib/python3.5/asyncio/unix_events.py", line 381, in _read_ready
opsdroid_1  |     data = os.read(self._fileno, self.max_size)
opsdroid_1  | OSError: [Errno 9] Bad file descriptor
opsdroid_1  | INFO opsdroid.web: ======== Running on http://127.0.0.1:8080 ========
opsdroid_1  | (Press CTRL+C to quit)

Both http://127.0.0.1:8080 and opsdroid-desktop return errors

captura de tela de 2018-01-23 05-18-10

captura de tela de 2018-01-23 05-18-57

fititnt commented 6 years ago

Installing directly on my host ubuntu 16.04 works inside as expected.

You would still need to dock to run this inside the server

# fititnt at bravo in ~/Downloads [5:31:47]
$ pip install ago  # need install this before on my machine to work
# fititnt at bravo in ~/Downloads [5:28:23]
$ pip install opsdroid

# fititnt at bravo in ~/Downloads [5:36:33]
$ opsdroid
INFO opsdroid: ========================================
INFO opsdroid: Started application
INFO opsdroid: ========================================
INFO opsdroid: You can customise your opsdroid by modifying your configuration.yaml
INFO opsdroid: Read more at: http://opsdroid.readthedocs.io/#configuration
INFO opsdroid: Watch the Get Started Videos at: http://bit.ly/2fnC0Fh
INFO opsdroid: Install Opsdroid Desktop at: 
https://github.com/opsdroid/opsdroid-desktop/releases
INFO opsdroid: ========================================
WARNING opsdroid.loader: No databases in configuration.This will cause skills which store things inmemory to lose data when opsdroid is restarted.
opsdroid> INFO opsdroid.web: ======== Running on http://127.0.0.1:8080 ========
(Press CTRL+C to quit)
INFO aiohttp.access: 127.0.0.1 [23/Jan/2018:07:36:52 +0000] "GET / HTTP/1.1" 200 193 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.62 Chrome/62.0.3202.62 Safari/537.36"
INFO aiohttp.access: 127.0.0.1 [23/Jan/2018:07:36:53 +0000] "GET /favicon.ico HTTP/1.1" 404 172 "http://127.0.0.1:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/62.0.3202.62 Chrome/62.0.3202.62 Safari/537.36"
INFO aiohttp.access: 127.0.0.1 [23/Jan/2018:07:37:14 +0000] "POST /connector/websocket HTTP/1.1" 200 220 "-" "-"

captura de tela de 2018-01-23 05-37-48