Functions

Run event-driven workloads from Docka through a managed cloud function or a Docka-managed VPS runtime.

Availability

  • Docka SaaS: Supported
  • Distributed edition: Not available

Supported Targets

  • AWS Lambda: Docka creates and updates a real Lambda function in your AWS account
  • Docka VPS Runtime: Docka deploys your function code to a connected server and executes it there

Workflow

  • Create a function from /app/functions with the same slide-form pattern used elsewhere in Docka
  • Select the target first: provider-backed cloud function or an existing server
  • Edit code in Docka’s built-in editor with syntax highlighting and line numbers
  • Keep draft code locally while you work, even if the page refreshes
  • Manage environment variables and deploy them together with code updates
  • Review deployment history, invocation history, status, and recent output from the detail page

AWS Lambda

Managed mode keeps the Docka function resource aligned with the real AWS Lambda resource. Docka stores the draft workflow, deployment history, and invocation history while the code itself is deployed into your connected AWS account.

  • Supported runtimes: Node.js 18/20 and Python 3.11/3.12
  • Managed create, update, deploy, invoke, list, and delete flows
  • Requires valid AWS provider credentials and the role/runtime details expected by Docka

VPS Runtime

VPS mode uses a Docka-managed runtime on an attached server. Docka pushes your code and environment configuration to the target, runs it there, and records deployment and invocation history through the same UI and API surface.

  • Useful when you want function-style execution on infrastructure you already control
  • Fits future migration workflows where a cloud function is moved to a VPS target

CLI

docka functions create \
  --name image-resizer \
  --runtime nodejs20.x \
  --handler handler \
  --provider-id PROVIDER_UUID

docka functions deploy FUNCTION_ID --code-file ./handler.js
docka functions invoke FUNCTION_ID --payload '{"hello":"docka"}'

Events, Notifications, and Alerts

Function create, deploy, and invoke actions emit Docka events. That lets the feature fit into notifications today and into broader alerting rules as the event model grows.

Current Scope

AWS Lambda and the Docka VPS runtime are the currently shipped function targets. Azure Functions and Google Cloud Functions are planned, but not yet exposed as supported managed paths.