Skip to content

Publish a full image with sidecars and a slim image - #24

Merged
slucheninov merged 3 commits into
mainfrom
full-image
Nov 24, 2026
Merged

slucheninov merged 3 commits into
mainfrom
full-image

Conversation

@slucheninov

@slucheninov slucheninov commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The default image now contains process-wrapper together with the sidecars it usually supervises; the process-wrapper-only image moves to the -slim tag.

Tag Dockerfile Contents
vX.Y.Z, latest deployment/docker/Dockerfile debian:12-slim with process-wrapper, envoy, proxysql, amqproxy, gomcrouter, phpscope + phpspy
vX.Y.Z-slim, latest-slim deployment/docker/Dockerfile-slim (the previous Dockerfile) alpine with process-wrapper only

Full image

  • process-wrapper is cross-compiled on the build platform.
  • envoy, gomcrouter and phpscope come from their public multi-arch images; phpspy is rebuilt statically from source.
  • proxysql 3.0.2 and amqproxy 3.2.2 are installed from their official apt repositories (both have amd64 and arm64 packages).
  • Binaries are stripped and compressed with UPX 5.3.0 (archive verified by sha256), build tools are removed afterwards.
  • GOMAXPROCS=2, runs as UID/GID 1010.

CI and release

  • CI builds both images; the full image job also runs every sidecar's --version.
  • The release builds 4 images (full/slim × amd64/arm64) on native runners and publishes multi-arch manifests for vX.Y.Z, vX.Y.Z-slim, latest and latest-slim.
  • e2e tests keep using the slim image.

Docs

README (Installation, Docker), CONTRIBUTING, SECURITY and the Makefile (docker-build, docker-build-slim) are updated.

Testing

  • Built the full image locally for linux/arm64 and ran every binary: process-wrapper, envoy, proxysql, amqproxy, phpspy, phpscope, gomcrouter.
  • actionlint and markdownlint pass.

Note

ghcr.io/tentens-tech/process-wrapper:v0.10.89 (already published) is the slim image; starting with the next release the unsuffixed tag is the full image. Use -slim to copy the binary into your own image.


Note

Medium Risk
Changes default image contents and tagging (existing vX.Y.Z consumers may expect the old slim image), and the full Dockerfile pulls third-party packages and external binaries into the release path.

Overview
Introduces two published container images: the default tag (vX.Y.Z / latest) becomes a full debian:12-slim image bundling process-wrapper with common sidecars (envoy, proxysql, amqproxy, gomcrouter, phpscope, phpspy); the former single-image build moves to Dockerfile-slim and is tagged -slim / latest-slim on Alpine with only process-wrapper.

CI and release build both variants (matrix on full vs slim), use separate GHA cache scopes, and for the full image add a job step that checks sidecar binaries. Release pushes four per-arch images and creates multi-arch manifests for both tag families; release notes and copy-from examples now point at -slim for embedding the binary.

Docs and tooling: make docker-build-slim, README/CONTRIBUTING/SECURITY describe the two images; e2e builds from Dockerfile-slim so tests stay on the minimal image.

Reviewed by Cursor Bugbot for commit 287449a. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f7d9d1fa-7d42-454e-99e5-77e36e9a4d14
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8707f7d. Configure here.

Comment thread deployment/docker/Dockerfile Resolved
Comment thread deployment/docker/Dockerfile Resolved
Comment thread .github/workflows/ci.yml Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Left a non-blocking comment: Cursor Bugbot reported 3 unresolved issues, including a high-severity Dockerfile UID/useradd problem, so this PR is not approved. Human review is needed, and no reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver: github

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: Cursor Bugbot passed on the current head with prior findings resolved, and Cursor Security Agent was not present. No further human review is required from this automation.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver: github

@slucheninov
slucheninov merged commit 585921b into main Nov 24, 2026
25 of 27 checks passed
@slucheninov
slucheninov deleted the full-image branch November 24, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant