Add first-run web setup and Compose without environment or secrets
All checks were successful
Test and publish Homegate / checks (push) Successful in 29s
Test and publish Homegate / publish (push) Successful in 12m46s

This commit is contained in:
2026-10-14 03:26:50 +03:00
parent 6844ccf0b9
commit a83d897b70
20 changed files with 689 additions and 53 deletions

View File

@@ -23,6 +23,16 @@ def check_read_only_resources(model):
def main():
simple = json.loads(subprocess.check_output(
['docker', 'compose', '--env-file', os.devnull, '-f', 'compose.simple.yaml',
'config', '--format', 'json']))
assert set(simple['services']) == {'homegate'}
service = simple['services']['homegate']
assert not service.get('environment') and not service.get('env_file')
assert not simple.get('secrets') and not simple.get('configs')
assert service['image'] == 'gitea.hyperdog.dev/dizyaka/homegate:' + Path('VERSION').read_text().strip()
assert {p['published'] for p in service['ports']} == {'8098', '8099'}
assert {v['source'] for v in service['volumes']} == {'config', 'state', 'control'}
env = dict(os.environ, HOMEGATE_IMAGE='registry.example/homegate/homegate:0.4.0',
HOMEGATE_LAN_IP='192.168.0.10', HOMEGATE_PROXY_IP='192.168.0.10',
HOMEGATE_ALLOWED_NETWORKS='[192.168.0.0/24]', HOMEGATE_ZONES='[home, home.arpa]',