Merge "etherpad: redirect container logs"
This commit is contained in:
commit
b0ea6c601e
@ -15,11 +15,19 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/etherpad/db:/var/lib/mysql
|
- /var/etherpad/db:/var/lib/mysql
|
||||||
- /etc/etherpad/mysql:/etc/mysql/conf.d
|
- /etc/etherpad/mysql:/etc/mysql/conf.d
|
||||||
|
logging:
|
||||||
|
driver: syslog
|
||||||
|
options:
|
||||||
|
tag: "docker-mariadb"
|
||||||
etherpad:
|
etherpad:
|
||||||
restart: always
|
restart: always
|
||||||
image: docker.io/opendevorg/etherpad
|
image: docker.io/opendevorg/etherpad
|
||||||
network_mode: host
|
network_mode: host
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
|
logging:
|
||||||
|
driver: syslog
|
||||||
|
options:
|
||||||
|
tag: "docker-etherpad"
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/etherpad/settings.json:/opt/etherpad-lite/settings.json
|
- /etc/etherpad/settings.json:/opt/etherpad-lite/settings.json
|
||||||
|
@ -25,3 +25,12 @@ def test_etherpad_robots(host):
|
|||||||
'--resolve etherpad.opendev.org:443:127.0.0.1 '
|
'--resolve etherpad.opendev.org:443:127.0.0.1 '
|
||||||
'https://etherpad.opendev.org/robots.txt')
|
'https://etherpad.opendev.org/robots.txt')
|
||||||
assert 'Disallow: /' in cmd.stdout
|
assert 'Disallow: /' in cmd.stdout
|
||||||
|
|
||||||
|
def test_etherpad_logs(host):
|
||||||
|
etherpad_log_file = host.file('/var/log/containers/docker-etherpad.log')
|
||||||
|
assert etherpad_log_file.exists
|
||||||
|
assert etherpad_log_file.contains('Etherpad is running')
|
||||||
|
|
||||||
|
mariadb_log_file = host.file('/var/log/containers/docker-mariadb.log')
|
||||||
|
assert mariadb_log_file.exists
|
||||||
|
assert mariadb_log_file.contains('mysqld: ready for connections')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user