pgadmin-org / pgadmin4

pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
https://www.pgadmin.org
Other
2.53k stars 658 forks source link

Docker image logging to stdout/stderr (RM #2920) #1523

Closed dpage closed 2 years ago

dpage commented 6 years ago

Issue migrated from Redmine: https://redmine.postgresql.org/issues/2920 Originally created by Tomas Barton at 2017-11-29 17:04:19 UTC.

In Docker image https://hub.docker.com/r/dpage/pgadmin4/ (I couldn't find any repository with source code)

there are multiple log files:

access_log
error_log
ssl_access_log
ssl_error_log
ssl_request_log

that should be redirected to @/dev/stdout@ resp. @/dev/stderr@.

Also it would be nice if configuration in @config.py@

MAIL_SERVER = 'localhost'
MAIL_PORT = 25
MAIL_USE_SSL = False
MAIL_USE_TLS = False
MAIL_USERNAME = ''
MAIL_PASSWORD = ''
MAIL_DEBUG = False

could be loaded from ENV variables.

dpage commented 6 years ago

Comment migrated from Redmine: https://redmine.postgresql.org/issues/2920#note-1 Originally created by Dave Page at 2017-11-30 10:01:41 UTC.

You can override config settings by including something like:

-v "/Users/dpage/config_local.py:/var/www/pgadmin/config_local.py”

When you launch the container. Put any config options you want to override into /Users/dpage/config_local.py and they should be picked up at launch. I'll update the image notes to mention that.

I've put the logging issues on my TODO list.

Redmine ticket header update:

Name Old Value New Value
Assigned To changed Tomas Barton
dpage commented 6 years ago

Comment migrated from Redmine: https://redmine.postgresql.org/issues/2920#note-2 Originally created by Dave Page at 2017-12-05 05:23:00 UTC.

Redmine ticket header update:

Name Old Value New Value
Fixed Version changed 2.1
Sprint changed EDB Sprint 2
dpage commented 6 years ago

Comment migrated from Redmine: https://redmine.postgresql.org/issues/2920#note-3 Originally created by Dave Page at 2017-12-05 05:23:41 UTC.

Applied in changeset commit:3b7656b3d5fee047d76eac93458ef0de45a5578b.

Redmine ticket header update:

Name Old Value New Value
Status changed New In Testing
Done Ratio changed 0 90
dpage commented 6 years ago

Comment migrated from Redmine: https://redmine.postgresql.org/issues/2920#note-4 Originally created by Dave Page at 2017-12-05 05:24:21 UTC.

Redmine ticket header update:

Name Old Value New Value
Subject changed Docker image issues Docker image logging to stdout/stderr
dpage commented 6 years ago

Comment migrated from Redmine: https://redmine.postgresql.org/issues/2920#note-5 Originally created by Fahar Abbas at 2017-12-06 10:31:46 UTC.

Resolved in this commit ID:

commit 22c38e4562dc23b2669b3fb9f97e8c0a1309cd31

Redmine ticket header update:

Name Old Value New Value
Status changed In Testing Resolved
dpage commented 6 years ago

Comment migrated from Redmine: https://redmine.postgresql.org/issues/2920#note-6 Originally created by Fahar Abbas at 2018-01-09 05:55:04 UTC.

Redmine ticket header update:

Name Old Value New Value
Done Ratio changed 90 100
dpage commented 6 years ago

Comment migrated from Redmine: https://redmine.postgresql.org/issues/2920#note-7 Originally created by Tomas Barton at 2018-01-09 11:49:41 UTC.

Any chance to update the Docker image on Docker Hub https://hub.docker.com/r/dpage/pgadmin4/?

dpage commented 2 years ago

Issue closed on Redmine.