mirror of
https://github.com/This-weiyuqing/mi-fitness-health.git
synced 2026-10-18 03:03:49 +08:00
deploy: accept exact OCI index or config identity from offline image
This commit is contained in:
1 parent
c076bbc0d6
commit
1c05825b6a
3 files changed
+7
-4
No files matched your search
@@ -9,7 +9,8 @@ backend, web, worker = items
|
||||
assert backend['Config']['Image'] == web['Config']['Image'] == IMAGE
|
||||
assert worker['Config']['Image'] == 'local/mi-fitness-nas:20261017-audit3'
|
||||
if len(sys.argv) > 1:
|
||||
assert backend['Image'] == web['Image'] == sys.argv[1]
|
||||
# 引擎可能报告OCI索引或配置digest;两者都来自已校验的同一镜像tar。
|
||||
assert backend['Image'] == web['Image'] and backend['Image'] in set(sys.argv[1:])
|
||||
assert backend['HostConfig']['ReadonlyRootfs'] and web['HostConfig']['ReadonlyRootfs']
|
||||
assert any(m['Destination'] == '/state' for m in backend['Mounts'])
|
||||
assert any(m['Destination'] == '/run/secrets/keyring_master' and not m['RW'] for m in backend['Mounts'])
|
||||
|
||||
Reference in new issue
Block a user