jdecool/scaleway-runtimepublic Fork
⑂ main
Commits
⬇ Clone ▾
git clone https://git.rickub.com/jdecool/scaleway-runtime.git
git clone ssh://git@rickub.com/jdecool/scaleway-runtime.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

v0.1.0

v0.1.0 · @jdecool ·
Release notes

First release of the Symfony Runtime for Scaleway Serverless Functions.

Features

  • Runs Symfony and PHP applications on the Scaleway PHP runtime (PHP 8.4+, Symfony 7.4 and 8.x).
  • Supports several Front Controller types: HttpKernel, Response, PSR-15 request handler, Console Application or Command (bin/console), and raw callable.
  • Keeps the process warm: the Application boots once per process, services are reset between Invocations, and a failed boot is retried.
  • Converts Events to Requests and Responses to Function Responses, including cookies, binary bodies, streamed responses and multipart/form-data uploads.
  • Runs console commands from CRON triggers, authenticated by SCALEWAY_CRON_SECRET and refused on Events from HTTP calls.
  • Handles headers securely: it trusts only X-Forwarded-Proto, takes the client IP from X-Real-Ip, drops headers containing underscores, and takes the host from the host option (SCALEWAY_HOST).
  • Defaults to the prod environment and keeps exception details out of deployed error pages.
  • Falls back to /tmp for the cache and log directories on the read-only filesystem.

Tooling

  • vendor/bin/scaleway-init writes the handler.php stub.
  • vendor/bin/scaleway-package builds the deployment zip (sources, composer.json and composer.lock); Scaleway installs the dependencies.
  • vendor/bin/scaleway-serve runs a local Emulator that builds platform-shaped Events and simulates CRON triggers on POST /_scaleway/cron.

See the README for installation, deployment with Terraform, and the platform facts this runtime relies on.

Assets