GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: Upgrade MailCatcher runtime by marcelorodrigo · Pull Request #16 · marcelorodrigo/mailcatcher

Conversation

@marcelorodrigo

@marcelorodrigo marcelorodrigo commented Aug 2, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Upgrade the container to MailCatcher 0.10.0 on Ruby 4.0.6 and Alpine 3.24. Add CI smoke validation for embedded versions, runtime package cleanup, HTTP startup, SMTP delivery, and retrieval through the MailCatcher API.

The existing image uses end-of-life Ruby 2.7 and Alpine 3.15 with MailCatcher 0.8.2. Moving to current upstream releases reduces exposure to outdated runtime components while preserving the existing command, ports, registries, and amd64, arm64, and arm/v7 publication targets.

A conservative Ruby 3.4 base was considered, but the latest stable stack was selected after successful native and multiarchitecture builds. The stale fixed image-size claim is removed because the resulting size varies with upstream layers.

Validation completed successfully for the native SMTP-to-HTTP flow and for builds on all three published architectures. The arm/v7 native SQLite compilation is slower under emulation but completes successfully.

Summary by CodeRabbit

  • New Features

    • Added automated container smoke tests that verify startup, HTTP readiness, SMTP email delivery, and message visibility through the web interface.
    • Updated the Docker image to use newer Ruby, Alpine Linux, and MailCatcher versions.
  • Documentation

    • Revised the README to provide a general description of the Alpine-based image footprint.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@marcelorodrigo
deps: Upgrade MailCatcher runtime
1c1eae0
Move the image to MailCatcher 0.10.0 on Ruby 4.0.6 and Alpine 3.24. Add an SMTP-to-HTTP CI smoke test so publishing only runs after runtime validation.
@coderabbitai

coderabbitai Bot commented Aug 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The Docker image upgrades Ruby, Alpine, and MailCatcher. The pull request adds CI smoke tests that build the image, validate runtime dependencies, send an SMTP message, verify it through the HTTP API, and clean up the container.

Changes

Image upgrade and validation

Layer / File(s) Summary
Update image versions and description
Dockerfile, README.md
The image uses Ruby 4.0.6 on Alpine 3.24 and MailCatcher 0.10.0. The README removes the approximate image size claim.
Build and exercise the image
.github/workflows/pr-build.yml
CI builds a local smoke-test image, validates versions and runtime packages, checks HTTP readiness, sends an SMTP message, verifies its subject through the HTTP API, and removes the container.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant DockerImage
  participant SmokeTestContainer
  participant SMTPClient
  participant MailCatcherHTTPAPI
  GitHubActions->>DockerImage: build and load mailcatcher:smoke-test
  GitHubActions->>SmokeTestContainer: validate versions and runtime packages
  GitHubActions->>SmokeTestContainer: start with SMTP and HTTP ports
  GitHubActions->>MailCatcherHTTPAPI: poll readiness
  SMTPClient->>SmokeTestContainer: send test message over SMTP
  GitHubActions->>MailCatcherHTTPAPI: verify message subject
  GitHubActions->>SmokeTestContainer: collect logs and remove container
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the primary MailCatcher runtime upgrade described in the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch deps/update-mailcatcher-runtime

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
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot reviewed Aug 2, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/pr-build.yml:
- Line 34: Update both docker/build-push-action references in the workflow,
including the build/push step, from the stale `@v3` major version to `@v7`; leave
the surrounding container-build configuration unchanged.

In `@Dockerfile`:
- Line 1: Add a dedicated non-root runtime user in the Dockerfile, switch to it
with USER mailcatcher before the existing CMD, and preserve the smoke test so
startup, SMTP, and HTTP access remain verified.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f3412f92-fb31-4860-a314-30bf94f26d92

📥 Commits

Reviewing files that changed from the base of the PR and between df2f853 and 1c1eae0.

📒 Files selected for processing (3)
  • .github/workflows/pr-build.yml
  • Dockerfile
  • README.md

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/pr-build.yml
uses: docker/setup-buildx-action@v2

- name: Build smoke test image
uses: docker/build-push-action@v3

@coderabbitai coderabbitai Bot Aug 2, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== workflow occurrences =="
if [ -f .github/workflows/pr-build.yml ]; then
  grep -n "docker/build-push-action" .github/workflows/pr-build.yml || true
  echo "== surrounding context =="
  sed -n '25,45p;115,130p' .github/workflows/pr-build.yml
else
  echo "missing .github/workflows/pr-build.yml"
fi

echo "== repository actionlint references =="
rg -n "actionlint|docker/build-push-action|build-push-action" .github . 2>/dev/null | head -100 || true

echo "== installed actionlint =="
(command -v actionlint && actionlint -version) || true

Repository: marcelorodrigo/mailcatcher

Length of output: 1813


🌐 Web query:

Docker build-push-action supported versions v7 docker/build-push-action releases

💡 Result:

The docker/build-push-action currently supports the v7 release series [1][2]. The latest version within this series is v7.3.0, which was published on July 1, 2026 [3]. The v7 series introduced significant updates, including switching to Node 24 as the default runtime, which requires the use of GitHub Actions Runner v2.327.1 or later [4]. It also included the removal of deprecated environment variables and legacy export-build tool support [4]. Users can implement the action in their workflows by specifying the version tag, for example: - uses: docker/build-push-action@v7 Official documentation and examples consistently reference the v7 series as the current major version for building and pushing Docker images [2][5][6]. Older major versions, such as v6, remain in the release history, but v7 is the latest supported major release [1].

Citations:

  • 1: https://github.com/docker/build-push-action/releases
  • 2: https://github.com/docker/build-push-action
  • 3: https://github.com/docker/build-push-action/releases/tag/v7.3.0
  • 4: https://github.com/docker/build-push-action/releases/tag/v7.0.0
  • 5: https://github.com/marketplace/actions/build-and-push-docker-images
  • 6: https://github.com/docker/build-push-action?tab=readme-ov-file

🌐 Web query:

docker/build-push-action Node.js version v3 Node12 runner requirements

💡 Result:

The docker/build-push-action v3 is significantly outdated and relies on older Node.js runtimes that are no longer supported or recommended by GitHub Actions [1][2]. Specifically, regarding the Node.js version requirements for build-push-action v3: - When v3 was initially released, it used Node.js 16 as its default runtime [3]. - Warnings regarding "Node.js 12" associated with older versions of this action were common during the transition periods where GitHub deprecated older runner environments [4][1][5]. - GitHub officially removed support for Node.js 12 from the Actions runner on August 14, 2023 [1]. - Subsequent transitions have moved the platform requirements to Node.js 16 and eventually Node.js 20 [1][2]. As of August 2026, the docker/build-push-action has moved to more recent major versions (up to v7), which now utilize Node.js 24 as the default runtime [6][7][8]. If you are encountering errors or warnings related to Node.js 12 or Node.js 16 requirements, it is strongly recommended that you update your workflow to use the latest version of the action (e.g., docker/build-push-action@v7) [7][2]. You can perform this update by modifying your GitHub Actions YAML file: - uses: docker/build-push-action@v7 [7] Using outdated action versions can lead to pipeline failures as GitHub continues to retire support for legacy Node.js versions on its hosted runners [1][2].

Citations:

  • 1: https://github.com/actions/runner/discussions/2704
  • 2: GitHub Warns about Deprecated Node Version esphome/build-action#21
  • 3: docker/build-push-action@v2.10.0...v3.0.0
  • 4: https://stackoverflow.com/questions/75638211/nodejs-12-alarm-in-github-workflow-and-unexpected-inputs-username-password
  • 5: Node 16 upgrade docker/build-push-action#724
  • 6: node 24 as default runtime docker/build-push-action#1470
  • 7: https://github.com/docker/build-push-action
  • 8: docker/build-push-action@docker:96b0c33...docker:7f8cd17

Update the stale docker/build-push-action ref.

docker/build-push-action@v3 is an old major version; the project’s current docker/build-push-action releases use @v7. Update both workflow occurrences so container-build jobs do not depend on a defunct action version.

Proposed update
-        uses: docker/build-push-action@v3
+        uses: docker/build-push-action@v7

Apply the same update to the build/push step at line 124.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
uses: docker/build-push-action@v3
uses: docker/build-push-action@v7
🧰 Tools
🪛 actionlint (1.7.12)

[error] 34-34: the runner of "docker/build-push-action@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/pr-build.yml at line 34, Update both
docker/build-push-action references in the workflow, including the build/push
step, from the stale `@v3` major version to `@v7`; leave the surrounding
container-build configuration unchanged.

Source: Linters/SAST tools

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread Dockerfile
@@ -1,4 +1,4 @@
FROM ruby:2.7.6-alpine3.15
FROM ruby:4.0.6-alpine3.24

@coderabbitai coderabbitai Bot Aug 2, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Files:"
git ls-files | sed -n '1,120p'

echo
echo "Dockerfile contents:"
if [ -f Dockerfile ]; then
  cat -n Dockerfile
else
  fd -a '^Dockerfile$' -x sh -c 'echo "--- $1"; cat -n "$1"' sh {}
fi

echo
echo "Search for Dockerfiles / USER / CMD / EXPOSE / MailCatcher:"
rg -n --hidden --glob '!vendor/**' --glob '!node_modules/**' --glob '!tmp/**' '(^|\b)(FROM|USER|CMD|ENTRYPOINT|EXPOSE|mailcatcher|Gemfile|docker|docker-compose|compose\.ya?ml|trivy|Trivy|DS-0002)\b' . | sed -n '1,220p'

Repository: marcelorodrigo/mailcatcher

Length of output: 4483


Run MailCatcher as a non-root user.

The Dockerfile never sets USER, so the final CMD runs mailcatcher as root. Ports 1025 and 1080 do not require root privileges. Add a dedicated runtime user and USER mailcatcher before CMD, then keep the smoke test enabled to verify startup, SMTP, and HTTP access.

Proposed hardening
     && gem install mailcatcher -v 0.10.0 -N \
     && apk del .build-deps
+RUN addgroup -S mailcatcher \
+    && adduser -S -G mailcatcher mailcatcher
+USER mailcatcher
 EXPOSE 1025
🧰 Tools
🪛 Trivy (0.72.0)

[error] 1-1: Image user should not be 'root'

Specify at least 1 USER command in Dockerfile with non-root user as argument

Rule: DS-0002

Learn more

(IaC/Dockerfile)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Dockerfile` at line 1, Add a dedicated non-root runtime user in the
Dockerfile, switch to it with USER mailcatcher before the existing CMD, and
preserve the smoke test so startup, SMTP, and HTTP access remain verified.

Source: Linters/SAST tools

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@marcelorodrigo
marcelorodrigo merged commit 02d1b84 into master Aug 2, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@marcelorodrigo
marcelorodrigo deleted the deps/update-mailcatcher-runtime branch August 2, 2026 16:07
This was referenced Aug 2, 2026
ci: Split PR and master Docker workflows #20
Merged
fix(docker): run MailCatcher as non-root #21
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@marcelorodrigo
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.