Skip to content

Commit 4a764c6

Browse files
committed
fix(docker): replace grep -q BRE pipe with grep -qE to avoid YAML escape error
1 parent 0641ec3 commit 4a764c6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docker/docker-compose.advanced.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ services:
100100
- odoo-a03-data:/var/lib/odoo
101101
- odoo-a03-addons:/mnt/extra-addons
102102
healthcheck:
103-
test: ["CMD-SHELL", "curl -sf http://localhost:8069/web/health | grep -q 'ok\\|pass'"]
103+
test: ["CMD-SHELL", "curl -sf http://localhost:8069/web/health | grep -qE 'ok\|pass'"]
104104
interval: 30s
105105
timeout: 10s
106106
retries: 10

docker/docker-compose.lan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ services:
8181
- odoo-l02-data:/var/lib/odoo
8282
- odoo-l02-addons:/mnt/extra-addons
8383
healthcheck:
84-
test: ["CMD-SHELL", "curl -sf http://localhost:8069/web/health | grep -q 'ok\\|pass'"]
84+
test: ["CMD-SHELL", "curl -sf http://localhost:8069/web/health | grep -qE 'ok\|pass'"]
8585
interval: 30s
8686
timeout: 10s
8787
retries: 10

docker/docker-compose.standalone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ services:
4141
networks:
4242
- odoo-s01-net
4343
healthcheck:
44-
test: ["CMD-SHELL", "curl -sf http://localhost:8069/web/health | grep -q 'ok\\|pass\\|{' || curl -sf http://localhost:8069/ | grep -qi 'odoo\\|login\\|openerp' || exit 1"]
44+
test: ["CMD-SHELL", "curl -sf http://localhost:8069/web/health | grep -qE 'ok\|pass\|{' || curl -sf http://localhost:8069/ | grep -qi 'odoo\\|login\\|openerp' || exit 1"]
4545
interval: 20s
4646
timeout: 10s
4747
retries: 10

0 commit comments

Comments
 (0)