Add first-run web setup and Compose without environment or secrets
This commit is contained in:
@@ -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]',
|
||||
|
||||
Reference in New Issue
Block a user