Skip to content

feat(sdk): update baseimage to Debian 13 (Trixie)#327

Merged
endersonmaia merged 3 commits intoprerelease/v2-alphafrom
feature/bump-base-image-to-debian-trixie
Sep 10, 2025
Merged

feat(sdk): update baseimage to Debian 13 (Trixie)#327
endersonmaia merged 3 commits intoprerelease/v2-alphafrom
feature/bump-base-image-to-debian-trixie

Conversation

@endersonmaia
Copy link
Copy Markdown
Contributor

This pull request updates the base images used in the SDK's Docker configuration to newer Debian and Postgres versions, and refactors the user creation process in the Dockerfile for improved security and compatibility.

Base image updates:

  • Updated CARTESI_BASE_IMAGE from Debian Bookworm to Debian Trixie, advancing the base OS version for the SDK Docker image (docker-bake.hcl).
  • Updated POSTGRES_BASE_IMAGE to use the Trixie-based Postgres image, ensuring consistency with the new Debian base (docker-bake.hcl).

User creation refactor:

  • Replaced the use of addgroup and adduser with a single useradd command in the Dockerfile, aligning with best practices for system user creation and improving security by explicitly setting the shell to nologin (Dockerfile).

@endersonmaia endersonmaia requested a review from tuler August 15, 2025 14:11
@endersonmaia endersonmaia self-assigned this Aug 15, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Aug 15, 2025

🦋 Changeset detected

Latest commit: 12eefd9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cartesi/sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@endersonmaia endersonmaia force-pushed the feature/bump-base-image-to-debian-trixie branch from ab1fba6 to f618d4b Compare August 15, 2025 14:15
@endersonmaia endersonmaia requested a review from Copilot August 23, 2025 18:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Updates the SDK's Docker configuration to use Debian 13 (Trixie) as the base image, replacing the previous Debian Bookworm version, and refactors the user creation process in the Dockerfile for improved security.

  • Updated base images from Debian Bookworm to Debian Trixie for both main and Postgres containers
  • Refactored user creation from separate addgroup/adduser commands to a single useradd command with improved security settings

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/sdk/docker-bake.hcl Updates base image references to Debian Trixie versions
packages/sdk/Dockerfile Refactors user creation to use useradd with security improvements
.changeset/shaggy-guests-look.md Adds changelog entry for the Debian version bump

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@endersonmaia endersonmaia force-pushed the feature/bump-base-image-to-debian-trixie branch from 48e965d to 12eefd9 Compare September 10, 2025 12:41
@endersonmaia endersonmaia merged commit 30d6d1e into prerelease/v2-alpha Sep 10, 2025
7 checks passed
@endersonmaia endersonmaia deleted the feature/bump-base-image-to-debian-trixie branch September 10, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants