- Shell 44.7%
- Python 23%
- Go 13.5%
- Just 8.8%
- Dockerfile 8.4%
- Other 1.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github | ||
| cmd/rosti | ||
| etc | ||
| examples | ||
| patches | ||
| scripts | ||
| tests | ||
| .drone.off.yml | ||
| .gitignore | ||
| activate_tech.fish | ||
| build_bun.sh | ||
| build_deno.sh | ||
| build_golang.sh | ||
| build_node.sh | ||
| build_openjdk.sh | ||
| build_php.sh | ||
| build_php7.sh | ||
| build_php8.sh | ||
| build_php56.sh | ||
| build_python.sh | ||
| build_ruby.sh | ||
| build_techs.py | ||
| Dockerfile | ||
| generate_versions.py | ||
| go.mod | ||
| go.sum | ||
| Justfile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| rjust | ||
| rosti-actions.sh | ||
| start.sh | ||
| Taskfile.yml | ||
| teams_message3.json | ||
| techs.json | ||
| tests2.sh | ||
Roští.cz Runtime
Runtime image designed for our hosting service. It's designed for multiple versions of Node.js, PHP and Python interpreters. It runs SSH, cron daemon and supervisord as process manager.
The goal of the image is to deliver versatile environment different kind of applications.
The image is based on Debian 13 Trixie.
Supported languages
Versions verified against upstream releases on 2026-11-19. Bold versions are the defaults in techs.json.
| Technology | Versions |
|---|---|
| Node.js | 22.23.5, 24.22.3, 26.13.1 |
| Python | 3.13.18, 3.14.10, 3.15.2 |
| PHP | 5.6.40, 7.0.33, 7.1.33, 7.2.34, 7.3.33, 8.2.36, 8.3.37, 8.4.28, 8.5.13, 8.6.0 |
| Ruby | 3.4.13, 4.0.10 |
| Deno | 2.9.8 |
| Bun | 1.4.5 |
| OpenJDK | 27.0.1.1 |
| Go | 1.27.4 |
PHP 8 builds Redis, MongoDB 2.5.8, and Memcached from pinned upstream source archives with SHA-256 verification in build_php8.sh. PHP 8.2–8.5 use Redis 6.3.0 and Memcached 3.4.0. PHP 8.6 uses pinned upstream commits with the compatibility fixes for both extensions.
SQL Server extensions sqlsrv and pdo_sqlsrv use SHA-256-verified Microsoft source archives. PHP 8.2 uses driver 5.12.0 and PHP 8.3–8.5 use 5.13.3. PHP 8.6 uses Microsoft's merged prerelease compatibility commit. The PHP build checks that both extensions load and that PDO registers the sqlsrv driver.
PHP 5.6 and 7 use build_php56.sh and build_php7.sh with locally stored vendor patches. These include the October PHP2Shell and applicable November 2026 security backports. The October patches disable session upload-progress tracking while retaining normal file uploads. All five branches are end of life.
The PHP 7 builder pins Redis 5.3.7, Memcached 3.2.0, Composer 2.2.25, and compatible MongoDB drivers (1.9.2 for PHP 7.0, 1.11.1 for 7.1, and 1.16.2 for 7.2/7.3), with SHA-256 verification. The Docker build argument PHP_BUILD_JOBS can override its default of four compiler jobs. Build output uses the same progress and failure logging as the other runtimes.
PHP 5.6 pins Redis 4.3.0, MongoDB 1.7.5, Memcached 2.2.0, and Composer 2.2.25, also with SHA-256 verification. It includes the legacy mysql extension alongside MySQLi and PDO, using mysqlnd. Its compiler job limit and logging follow the PHP 7 builder.
** Additional tools **
- Memcached
- Redis
- crond
- Supervisord
- Nginx 1.26.3-3+deb13u11 or newer from Debian Trixie, with fixes for CVE-2026-123007 and CVE-2026-123633. Debian security advisory
- Dropbear
Test
To run tests you can check integrated workflow, but all you need are those two commands:
make test
If you prefer Podman, use this command to build the image:
make DOCKER=podman test
This is useful in Fedora.
PHP 5.6 and 7 builds also run tests/php_legacy_requests.py during the image build. It exercises FPM request cleanup after a fatal error, repeated multipart uploads on the same worker, large sets of ignored part headers, and recovery after memory exhaustion during both script execution and request parsing.
Development builds
The full build compiles or downloads every supported technology. For faster debugging you can skip selected technologies with build arguments:
task build BUILD_PHP=0 BUILD_PYTHON=0 BUILD_RUBY=0
For the fastest image, use the development preset. It disables all technology builds by default:
task dev
You can re-enable only the runtime you need:
task dev BUILD_NODE=1
Supported technology versions, labels, build scripts, extra build arguments, and default versions are configured in techs.json. Individual versions may override their technology's script, as PHP 5.6 and 7 do.
Runtime builds print a start/completion summary and a progress update every minute. If a build fails, the last 100 lines (up to 32 KiB) are printed and the build fails with the original exit status. To stream all compiler and download output while debugging:
task build BUILD_VERBOSE=1
Python compilation and installation bytecode workers are limited to four jobs by default. Set the Docker build argument PYTHON_BUILD_JOBS to adjust that limit for the build host.
Runtime configuration tool
The rosti command is a Bubble Tea based TUI when run without arguments. It keeps the non-interactive CLI interface for automation:
rosti node
rosti node 26.12.1
rosti redis
The TUI binary delegates environment changes to rosti-actions.sh so the setup behavior stays shared between interactive and CLI modes.
Releases
The main-branch workflow builds the image, smoke-tests every configured runtime, and publishes it to git.ceperka.net/rosti/runtime with both pipeline and the full commit SHA as tags. After that workflow succeeds, publishing a release promotes the image for that exact commit to harbor.rosti.cz/rosti-public/runtime:<release-tag>. An explicitly requested smoke-test skip can be selected by including [skip runtime tests] in the push commit message; the build, PHP extension-load checks, and image publication still run.
Experimental chunked images
The pipeline also produces images with a -chunked suffix:
| Registry | Regular tag | Chunked tag |
|---|---|---|
git.ceperka.net/rosti/runtime |
pipeline |
pipeline-chunked |
git.ceperka.net/rosti/runtime |
<commit-SHA> |
<commit-SHA>-chunked |
harbor.rosti.cz/rosti-public/runtime |
<release-version> |
<release-version>-chunked |
The regular build and release promotion remain independent of the experimental jobs. A chunking or chunked smoke-test failure leaves regular publication intact. Releases promote the tested chunked image for their exact commit; they do not rebuild it. Release promotion requires the main-branch chunked job to have finished successfully. Historical images are not backfilled automatically.
chunkah repacks the completed filesystem into
at most 64 ordinary container layers. Components come from Debian's package
file lists, each installed /opt/techs/<technology>-<version> directory, and the
Roští tooling. A pinned chunkah image and normalized filesystem timestamps help
independent builds reuse identical layers. Compiled binaries and floating build
dependencies can still differ; actual reuse depends on the final file contents.
The first pull uses the new layer layout; subsequent pulls can reuse unchanged
layers. Existing containers keep their current image until recreated.
Pull savings also depend on the client image store. Classic Docker overlay2
checks the complete parent chain when reusing layers, so changing an early layer
can make it download later layers again even when their digests match. See the
Moby download manager.
Docker's containerd image store
retains compressed registry blobs, allowing reuse independently of the snapshot
parent chain. The fixture tests measure identical layer digests;
registry download savings need a pull benchmark on the deployment engine.
Archive import compatibility with older Docker stores does not remove this limit.
The build helper compares the exported and repacked filesystems for file contents,
ownership, permissions, symlinks and extended attributes. It preserves the image
configuration, including ENTRYPOINT, VOLUME /srv, environment variables and
exposed ports. The chunked job also runs the runtime smoke tests.
The [skip runtime tests] commit message option skips runtime smoke tests for
both variants. Filesystem and configuration checks still run.
Tests use a separate container name so they cannot stop the regular test container.
The chunking job runs as the runner user without sudo. Provision Docker access,
Python 3.9 or newer, local Podman and Skopeo on the runner beforehand.
prepare-chunking-tools.sh checks these dependencies and rootless user mappings;
it does not install system packages. Rootless Podman needs enabled user namespaces,
newuidmap/newgidmap, and at least 65,536 subordinate UIDs and GIDs allocated to
the runner account in /etc/subuid and /etc/subgid. Image owners must fit those
mappings; ownership is never flattened to the runner user.
The build helper automatically enters podman unshare, where UID 0 is mapped to
the runner account rather than host root. Mounting, chroot-based component
annotation, archive conversion and filesystem verification share this namespace
and the runner's Podman storage. The ownership regression tests use the same
namespace and fail if it is unavailable instead of silently skipping.
Docker exports the merged source filesystem from a container that is never
started, so Docker applies layer deletions before Podman imports the files.
The source configuration is read separately from the original image.
A Docker image archive carries the repacked image back to Docker, including
classic Docker stores without OCI archive import support. Temporary containers,
images and archives are removed after the build. Allow disk space for the
Podman layers and the repacked image. The default temporary directory is /var/tmp.
Set TMPDIR to use a larger filesystem.
To repack a regular image already present in local Docker:
scripts/prepare-chunking-tools.sh
task chunked REPO=git.ceperka.net/rosti/runtime VERSION=pipeline
CONTAINER_NAME=runtime-chunked-local task test REPO=git.ceperka.net/rosti/runtime VERSION=pipeline-chunked
task chunked creates the local variant and performs the filesystem/configuration
checks; publishing remains a separate operation. The configuration check ignores
ArgsEscaped for Linux images: it is legacy Windows command-line metadata that
Docker and OCI tools serialize differently. Entrypoint, arguments, environment,
user, volumes and other startup settings remain strictly checked.
For helper regression tests:
python3 tests/test-chunked-config.py
python3 tests/test-chunk-components.py
tests/test-chunked-images.sh
Local validation on 2026-11-07 repacked the published 21-runtime image from 84 layers (16.5 GB uncompressed) into 64 layers (8.7 GB uncompressed). All 213,862 filesystem entries retained their contents, ownership, permissions and extended attributes apart from the documented chunking metadata and timestamps. Image startup settings were preserved. All 21 configured runtimes passed activation and HTTP smoke tests, including PHP OPcache checks. Local execution used Podman with its Docker-compatible CLI. A controlled fixture produced identical layer digests on repeated repacking and reused 63 of 64 layers after a small file change. These measurements describe local image content and layer digests, rather than registry bandwidth or two independently compiled full runtime builds.
Additional info
Default user
Image uses system user app to run the application code.
SSH password
The image runs dropbear at start along crond and supervisord. If you want to set password for next start of the container, save it into this file:
/srv/.rosti
Dynamically it can be set like this:
echo "app:PASSWORD" | chpasswd