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

Loading…
Cancel
Save