treehouses / rpi-couchdb

CouchDB Docker 🐳 for Raspberry Pi. Part of OLE's Treehouses Project.
https://github.com/open-learning-exchange/
GNU Affero General Public License v3.0
30 stars 9 forks source link

Better log by default #28

Closed empeje closed 5 years ago

empeje commented 6 years ago

Right now the Docker image once runs not giving a very meaningful information in the log, meaning we didn't output the log to stdout like other did in container world.

Expected Behavior

Showing the log directly to STDOUT

Current Behavior

I got this when I run the image in RPi.

root@raspberrypi:~# docker ps
CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS                                        NAMES
142ddad6f632        treehouses/planet:latest   "/usr/bin/entry.sh /…"   26 hours ago        Up 24 hours         0.0.0.0:80->80/tcp, 443/tcp                  planet_planet_1
dd819e55a3cf        treehouses/couchdb:2.1.1   "tini -- /docker-ent…"   26 hours ago        Up 24 hours         4369/tcp, 9100/tcp, 0.0.0.0:2200->5984/tcp   planet_couchdb_1
root@raspberrypi:~# docker logs -f dd819e55a3cf
****************************************************
WARNING: CouchDB is running in Admin Party mode.
         This will allow anyone with access to the
         CouchDB port to access your database. In
         Docker's default configuration, this is
         effectively any other container on the same
         system.
         Use "-e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password"
         to set it in "docker run".
****************************************************
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
[os_mon] memory supervisor port (memsup): Erlang has closed
****************************************************
WARNING: CouchDB is running in Admin Party mode.
         This will allow anyone with access to the
         CouchDB port to access your database. In
         Docker's default configuration, this is
         effectively any other container on the same
         system.
         Use "-e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password"
         to set it in "docker run".
****************************************************
[os_mon] cpu supervisor port (cpu_sup): Error writing to Erlang

Possible Solution

Log to stdout

Your Environment