Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
14 posts · #docker
Clear filters·5 min read

Zig images for Pterodactyl: four compiler versions, two tarball names
One Dockerfile builds four Zig releases for amd64 and arm64, and a start script that checks build.zig before passing flags and explains every failure in a sentence.
In short
- One Dockerfile takes ZIGVERSION as a build argument, tries the new tarball name first and falls back to the pre-0.14.1 name.
- The start script only passes -Doptimize when build.zig declares it, and refuses to guess when a build produces zero or several executables.
- CI builds four versions for amd64 and arm64 and rebuilds monthly, so base-image security updates arrive without a code change.
#docker#zig#pterodactyl#github-actions#bash
·6 min read

Pterodactyl yolks · Story
SQL Server built fine and could not start under Wings
A passing docker build proved nothing. A file capability on sqlservr and an eval echo on the startup string only showed up once CI booted the image the way Wings does.
In short
- sqlservr ships with the capnetbindservice file capability, and Wings drops that capability, so the kernel refuses to exec it.
- Rewriting each executable removes the capability, and a CI boot test with Wings' uid and dropped capabilities now gates publishing.
- The same test caught the startup string being expanded with eval echo, which ran the panel's console banner as code.
#docker#pterodactyl#sql-server#ci#security
·5 min read

Pterodactyl yolks · Story
A MySQL init file full of passwords, and a CI check that raced it
MySQL's first start needs a SQL file with the root and app passwords in it. I moved it out of the startup line, locked down the run directory, and fixed a test that raced the cleanup.
In short
- The init file is now referenced from the generated config (init-file=...), not appended to the startup line and echoed to the console.
- The socket and pid file moved from /tmp into a run directory created with mode 700.
- The CI step that asserts the init file is gone now waits for the removal instead of racing it.
#mysql#docker#pterodactyl#security#ci
·5 min read

Pterodactyl yolks · Story
The n8n image had no bash, so my entrypoint became POSIX sh
My first n8n entrypoint assumed bash, setsid and a package manager. The base image had none of them. Rewriting it in plain sh meant rethinking how shutdown reaches the process.
In short
- The base image n8nio/n8n has no bash and no package manager, so the apk add line and the bash entrypoint both had to go.
- The entrypoint became POSIX sh, and the passwd entry for uid 988 points at /bin/sh.
- Shutdown now uses kill -TERM -1, which is only safe because the script is PID 1 in the container.
#docker#shell#n8n#pterodactyl#posix
·5 min read

Pterodactyl yolks · Story
One missing curl flag broke my mail server setup
Stalwart's first-start setup could not open a JMAP session. I printed the response, and fifty seconds later the fix was a single letter: curl -L.
In short
- The setup script asked for the JMAP session with curl -fsS, which treats a redirect as success but does not follow it.
- A debug commit printed the response body on failure, then -L made curl follow the redirect.
- The CI checks that call the same URL needed the same flag, or they would have asserted on the wrong status code.
#curl#jmap#docker#pterodactyl#debugging
·13 min read

Custom Pterodactyl Yolks: Docker Images for Wings Containers
Images that build but will not start under Wings: file capabilities, a banner that gets executed, a container that never exits. How I found each one and made CI boot every yolk the way Wings does.
In short
- Wings runs containers as uid 988, so every image creates a matching container user and keeps all data under /home/container.
- Binaries with the capnetbindservice file capability fail to exec under Wings, so the images rewrite the files to drop it.
- Each pterodactyl- repo has a CI job that boots the image with Wings' uid and dropped capabilities, and publishes only if the service answers.
#pterodactyl#docker#wings#devops