mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
[docker compose yml fix]: Duplicate YAML merge keys (<<) are now rejected from v2.17.x (#12428)
fix: Replace unsupported repeated yaml anchors with merge `docker compose` v2.17.2 fails with the following syntax error due to go/yaml/v3 update. ```sh ❯ docker compose config yaml: unmarshal errors: line 40: mapping key "<<" already defined at line 39 line 40: mapping key "<<" already defined at line 39 line 40: mapping key "<<" already defined at line 39 ``` "goyaml/v3 does not support repeated anchors (due to internal storage using << as key during parsing) but allows use of multi-values in anchors" See: https://github.com/docker/compose/issues/10411#issuecomment-1488019350 https://yaml.org/type/merge.html
This commit is contained in:
+1
-2
@@ -36,8 +36,7 @@ x-op-backend: &backend
|
||||
build:
|
||||
<<: *build
|
||||
target: develop
|
||||
<<: *image
|
||||
<<: *restart_policy
|
||||
<<: [*image, *restart_policy]
|
||||
environment:
|
||||
LOCAL_DEV_CHECK: "${LOCAL_DEV_CHECK:?The docker-compose file for OpenProject has moved to https://github.com/opf/openproject-deploy}"
|
||||
RAILS_ENV: development
|
||||
|
||||
Reference in New Issue
Block a user