feat: connectivity redesign phase 5 — one container per connection instance
Unit Tests / test (push) Successful in 13m5s
Unit Tests / test (push) Successful in 13m5s
instanceable rendering, per-instance up/down on create/delete, store-service-installed gate, per-instance health Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -329,12 +329,16 @@ class ServiceStoreManager(BaseServiceManager):
|
||||
if not result.get('ok'):
|
||||
return {'ok': False, 'error': result.get('error') or result.get('stderr', 'docker up failed')}
|
||||
|
||||
# Persist minimal install record
|
||||
# Persist minimal install record. For instanceable connectivity
|
||||
# services the raw compose template is stored so ConnectivityManager
|
||||
# can render one container per connection instance without re-fetching.
|
||||
record = {
|
||||
'id': service_id,
|
||||
'manifest': manifest,
|
||||
'installed_at': datetime.utcnow().isoformat(),
|
||||
}
|
||||
if manifest.get('instanceable'):
|
||||
record['compose_template'] = template_content
|
||||
self.config_manager.set_installed_service(service_id, record)
|
||||
|
||||
# Regenerate Caddy (registry now drives routes, no caddy_routes list needed)
|
||||
|
||||
Reference in New Issue
Block a user