container compose doesn't support extends
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 54/100
调研方向
Start by reading the Swift code that decodes service definitions and handles extends; the error points to validation of the mongo service's image field. Reproduce with the provided compose files and compare behavior with Docker Compose. Done means container-compose up resolves the referenced service's build configuration instead of reporting that image or build is missing.
由索引模型根据 Issue 内容生成。
描述
Looks like extends is not working in container-compose but it is working using Docker desktop
container-compose up
Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "services", intValue: nil),
_DictionaryCodingKey(stringValue: "mongo", intValue: nil), CodingKeys(stringValue: "image", intValue: nil)],
debugDescription: "Service must have either \'image\' or \'build\' specified.", underlyingError: nil))
cat docker-compose.yml
version: '3.1'
services:
mongo:
extends:
file: ./dev/docker-compose/docker-mongo-replica-set/docker-compose.yml
service: mongo-replica
firebase-emulator:
extends:
file: ./dev/docker-compose/firebase-emulator/docker-compose.yml
service: firebase-emulator
container_name: firebase-emulator
ports:
- "4000:4000" #Emulator UI
- "9099:9099" #Firebase Auth
- "9199:9199" #Firebase Cloud Storage
- "9000:9000" #Firebase Realtime database
volumes:
- ./dev/docker-compose/firebase-emulator/data:/firebase/data:rw
- ./firebase.json:/firebase/firebase.json:ro
firebase-emulator-itests: #this is only used for itests, to make sure dev-data is not wiped on the normal fb-emulator. Make sure to adjust your .env.testing-file accordingly
extends:
file: ./dev/docker-compose/firebase-emulator/docker-compose.yml
service: firebase-emulator
container_name: firebase-emulator-itests
ports: #the host-ports have a leading `1` compared to the normal ports, make sure to use that port instead of the normal one in your .env.testing-file
- "14000:14000" #Emulator UI
- "19099:19099" #Firebase Auth
- "19199:19199" #Firebase Cloud Storage
- "19000:19000" #Firebase Realtime database
volumes:
# Mounting a different firebase.json-config into the container to make it run on different ports
- ${PWD}/dev/docker-compose/firebase-emulator/firebase_itest.json:/firebase/firebase.json
networks:
ev:
name: ev
cat ./dev/docker-compose/docker-mongo-replica-set/docker-compose.yml
version: '3.8'
services:
mongo-replica:
build: .
container_name: mongo-replica
ports:
- "27017:27017"
- "27018:27018"
- "27019:27019"
volumes:
- ./data/mongo1:/data/mongo1
- ./data/mongo2:/data/mongo2
- ./data/mongo3:/data/mongo3
container-compose up
Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "services", intValue: nil), _DictionaryCodingKey(stringValue: "mongo", intValue: nil), CodingKeys(stringValue: "image", intValue: nil)], debugDescription: "Service must have either \'image\' or \'build\' specified.", underlyingError: nil))
- 主要语言
- Swift
- 星标
- 1k
- 派生
- 61
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 17
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Mcrich23/Container-Compose 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
Mcrich23/Container-Compose#197 ·
维护者通常 1 天内回复
-
SIGINT/SIGTERM ignored during startup phase & healthcheck wait in foreground up可能已有人在做 @georgettica 于 27 天前认领。 未关闭
Mcrich23/Container-Compose#165 · 5 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
Mcrich23/Container-Compose#137 · 1 条评论 ·
维护者通常 1 天内回复
-
DecodingError.typeMismatch in build args可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 25/100
Mcrich23/Container-Compose#136 · 1 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
Containers launch sequentially - can they be launched concurrently?可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
Mcrich23/Container-Compose#128 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 Mcrich23/Container-Compose 的全部 Issue
相似的 Issue
-
milestone-3
难度 2/5 1-3 小时 新手友好度 78/100
Harsha0912/recall#71 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
meshtastic/Meshtastic-Apple#3132 ·
维护者通常 1 天内回复
-
approved
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 66/100
MonitorControl/MonitorControl#1949 ·
-
Bug
难度 1/5 1 小时以内 新手友好度 91/100