Add caching layer for edge gateway views, including payload storage, retrieval, sync, and invalidation

This commit is contained in:
Jeppe Bundgaard
2026-04-22 14:23:24 +02:00
parent 300942f1c8
commit f4952f16e6
9 changed files with 1083 additions and 24 deletions
@@ -14,7 +14,11 @@ it('builds the installer around the compose stack artifacts and management polli
expect($managerSource)->toContain('fetch_http "Download compose stack service unit" "__STACK_SERVICE_URL__" "$INSTALL_DIR/truckwash-edge-gateway-stack.service"');
expect($managerSource)->toContain('log_error "Request: GET ${url}"');
expect($managerSource)->toContain('log_error "Response body preview (first 400 bytes):"');
expect($managerSource)->toContain('apt-get install -y curl ca-certificates docker.io docker-compose-plugin php-cli php-curl php-mbstring php-sqlite3');
expect($managerSource)->toContain('run_step "Installing base packages" apt-get install -y curl ca-certificates docker.io php-cli php-curl php-mbstring php-sqlite3');
expect($managerSource)->toContain('run_step "Installing Docker Compose runtime" install_compose_runtime');
expect($managerSource)->toContain('apt-get install -y docker-compose-plugin');
expect($managerSource)->toContain('apt-get install -y docker-compose');
expect($managerSource)->toContain('Unable to install Docker Compose using docker-compose-plugin or docker-compose.');
expect($managerSource)->toContain('Existing claimed gateway detected; reinstall will reuse saved gateway credentials.');
expect($managerSource)->toContain('run_step "Writing agent config" merge_agent_config "$CONFIG_TEMPLATE_PATH" "$CONFIG_PATH"');
expect($managerSource)->toContain('systemctl enable truckwash-edge-gateway-stack.service');