docs(cv): publish qualified acceptance and import handoff

This commit is contained in:
cesnimda
2026-10-26 10:37:31 +01:00
parent b1817aa52c
commit 4a0af6273b
10 changed files with 272 additions and 39 deletions
+5 -1
View File
@@ -268,7 +268,8 @@ def run(args):
assert sql(f"SELECT COUNT(*) FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME='{schema}'") == '0'
sql(f'CREATE DATABASE `{schema}` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci')
created = True
commands.run(['docker', 'network', 'create', '--internal', '--label', 'task=cv-ux-01', network])
# A regular owned bridge permits Docker's loopback-only published API port.
commands.run(['docker', 'network', 'create', '--label', 'task=cv-ux-01', network])
network_created = True
commands.run(['docker', 'network', 'connect', '--alias', 'mariadb', network, db])
attached = True
@@ -287,6 +288,9 @@ def run(args):
commands.run(create + [args.image])
assert commands.run(['docker', 'inspect', '--format', '{{.Image}}', api]) == args.image
commands.run(['docker', 'start', api])
bindings = json.loads(commands.run(['docker', 'inspect', '--format', '{{json .NetworkSettings.Ports}}', api]))
if bindings.get('8080/tcp') != [{'HostIp': '127.0.0.1', 'HostPort': '5302'}]:
raise ValueError('Owned API loopback port was not published.')
deadline = time.monotonic() + 120
while True:
try: