Files
erp/chart/templates/config.yaml
Gabriel Radureau 416cd807a3 fix(sandbox): run Dolibarr in dev mode (DOLI_PROD=0) + correct install.lock path
After seeding erp-sandbox from prod, the home dashboard rendered a generic
"technical error" banner per box: prod mode ($dolibarr_main_prod=1, the image
default via DOLI_PROD) escalates the seed's minor non-fatal warnings into that
banner. Setting DOLI_PROD=0 for non-prod environments makes Dolibarr render
real errors inline (correct for a rehearsal env) and clears the banners.

config.yaml adds `DOLI_PROD: "0"` only when env != prod, so the prod configmap
is byte-identical (prod keeps the image default DOLI_PROD=1) — verified via
helm template diff. ArgoCD rolls only the sandbox pod.

Also corrects the test/README install.lock path: Dolibarr checks the DATA root
(/var/www/documents, a PVC — persists across restarts), not /var/www/html. And
notes that a prod-seeded sandbox still needs install.lock created (the seed +
documents/mycompany sync don't include it).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-29 14:09:59 +02:00

28 lines
991 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "erp.name" . }}-config
namespace: {{ .Release.Namespace }}
# Doc: https://hub.docker.com/r/dolibarr/dolibarr https://github.com/Dolibarr/dolibarr-docker
data:
DOLI_DB_TYPE: pgsql
DOLI_DB_HOST: pgbouncer.tools
DOLI_DB_HOST_PORT: !!str 5432
# DOLI_DB_USER: root
# DOLI_DB_PASSWORD: root
DOLI_DB_NAME: {{ .Values.db.name }}
DOLI_URL_ROOT: 'https://{{ .Values.host }}'
# DOLI_ADMIN_LOGIN: 'admin'
# DOLI_ADMIN_PASSWORD: 'admininitialpassword'
DOLI_ENABLE_MODULES: Societe,Facture
DOLI_COMPANY_NAME: Arcodange
DOLI_COMPANY_COUNTRYCODE: FR
PHP_INI_DATE_TIMEZONE: Europe/Paris
DOLI_AUTH: dolibarr
DOLI_CRON: !!str 0
{{- if ne .Values.env "prod" }}
# Non-prod (sandbox): dev mode — render real errors inline instead of the generic
# prod "technical error" banner. Prod keeps the image default (DOLI_PROD=1).
DOLI_PROD: !!str 0
{{- end }}
# DOLI_INSTANCE_UNIQUE_ID: <random salt for encryption>