Skip to content

Switch Docker image from Alpine to Debian slim - #661

Merged
lodewiges merged 1 commit into
stagingfrom
chore/ruby-slim-image
Dec 3, 2026
Merged

lodewiges merged 1 commit into
stagingfrom
chore/ruby-slim-image

Conversation

@lodewiges

Copy link
Copy Markdown
Contributor

Requested by AG · project thread

Checklist

  • merged database migrations into 1 database migration (no migrations)
  • tested database migrations from origin/staging (no migrations)

Summary

Switches the Docker base image from ruby:3.4.7-alpine to ruby:3.4.7-slim (Debian trixie), so amber-api uses the same base OS family as Sofia. The Ruby version stays at 3.4.7 on purpose.

Package mapping:

Alpine Debian
build-base build-essential
postgresql-dev libpq-dev
file-dev libmagic-dev (for ruby-filemagic)
jpeg-dev libjpeg-dev
yaml-dev libyaml-dev
imagemagick, ghostscript, git, tzdata, libffi-dev same names

bash is no longer installed explicitly because Debian slim already ships it.

Other information

  • I couldn't build the image locally, so CI's Docker build and specs are the first real test.
  • Please check by hand on staging: image uploads (CarrierWave + MiniMagick) and declaration PDF receipts (PdfRasterizer, ghostscript).
  • Gemfile.lock only has the x86_64-linux-musl variant for ffi and pg, so these gems now compile from source on glibc. That works but builds a bit slower. bundle lock --add-platform x86_64-linux-gnu would add prebuilt gems, and can be a follow-up.

Generated by Claude Code

Keeps Ruby 3.4.7 and maps the Alpine packages to their Debian equivalents,
so amber-api runs on the same base OS family as Sofia.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiPSKFYTCziTVpPDc3p489
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 31 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: d72bdce9-3122-4b86-aaf5-5f0661765d0e
Commits

Reviewing files that changed from the base of the PR and between 4e8fd01 and 12eb856.

Files selected for processing: 1

  • Dockerfile
  • 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 Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (4e8fd01) to head (12eb856).

Additional details and impacted files
@@            Coverage Diff            @@
##           staging      #661   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          198       198           
  Lines         3027      3027           
=========================================
  Hits          3027      3027           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lodewiges
lodewiges merged commit ce36f0c into staging Dec 3, 2026
6 checks passed
@lodewiges
lodewiges deleted the chore/ruby-slim-image branch December 3, 2026 13:59
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.

2 participants