Browse Source

new: [odoo-tecnativa] logs are not managed by default

Do not redirect logs to ``/var/log/odoo`` unless logrotate is linked.
framadate
Valentin Lab 6 years ago
parent
commit
50e8f5e5ec
  1. 3
      odoo-tecnativa/hooks/log_rotate-relation-joined
  2. 4
      odoo-tecnativa/metadata.yml

3
odoo-tecnativa/hooks/log_rotate-relation-joined

@ -47,4 +47,7 @@ services:
$MASTER_BASE_SERVICE_NAME:
volumes:
- $SERVICE_DATASTORE$LOGS:$LOGS:rw
command:
- \"--logfile=$LOGS/odoo.log\"
"

4
odoo-tecnativa/metadata.yml

@ -1,7 +1,6 @@
docker-image: git.panda-chi.io:5002/panda-chi/docker-odoo-pandachi:11.0-all-module-test
data-resources:
- /var/lib/odoo
- /var/log/odoo
# config-resources:
# ## XXXvlab: should this be there or declared dynamically in the relation that
# ## create/update this file ?
@ -11,7 +10,6 @@ docker-compose:
command:
- odoo
- --config=/opt/odoo/auto/odoo.conf
- --logfile=/var/log/odoo/odoo.log
## YYYvlab: useful ?
tty: true
environment:
@ -33,7 +31,7 @@ uses:
constraint: recommended
auto: pair
solves:
disk-leak: "/var/log/odoo"
unmanaged-logs: "in docker logs"
#default-options:
web-proxy:
#constraint: required | recommended | optional

Loading…
Cancel
Save