← Back to issue list

The image entry point should be configurable, making Pebble optional

View original Github issue

Metadata

Project
rockcraft
Number
#866
Type
issue
State
open
Author
petrutlucian94
Labels
Created
Updated
Closed

Current evaluation

Request to make Pebble optional by allowing a configurable OCI entrypoint in Rockcraft. The feature was implemented in Rockcraft 1.14.0 via the entrypoint-command key (PR #939), but the issue remains open and unlabelled.

Suggested action: close stale

Reason: The configurable entrypoint feature requested here was implemented in Rockcraft 1.14.0 via the entrypoint-command project key (PR #939). Release notes state this key 'defines the rock's OCI entrypoint, bypassing the default Pebble-powered entrypoint,' directly addressing the issue's core request. The issue is no longer applicable.

Impact: 75 Quick Win: 26.25 Staleness: 50 Complexity: 65 Confidence: 88 Support Request: 20

Issue body

### Bug Description Rockcraft always sets Pebble as the image entry point. This often prevents rock images from being used as drop-in replacements for the upstream images. One example is rawfile-localpv, where a pod is [launched on the fly to perform resizes](https://github.com/canonical/k8s-snap/issues/1278#issuecomment-2791412856). The template defines container arguments that aren't handled properly by rock images, which expect these arguments to contain `--args $serivceName`. Workarounds that have been used so far (not always applicable): * fork the projects to accommodate Pebble * doesn't scale very well * explicitly set the container entry point to bypass Pebble * the helm charts don't always provide this option * use a Dockerfile wrapper with a rock image as base so that we can explicitly set an entry point * ugly, defeats the purpose of Rockcraft Pebble isn't actually needed when there's just one process per container (most OCI images), it's a redundant component that interferes with the way in which Kubernetes launches and manages processes. That being considered, Rockcraft should make the image entry point configurable, greatly simplifying rock image maintenance. ### To Reproduce N/A ### Environment N/A ### rockcraft.yaml ```yaml N/A ``` ### Relevant log output ```shell N/A ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 75
Quick Win: 26.25
Staleness: 50
Complexity: 65
Confidence: 88
Support Request: 20
close stale Request to make Pebble optional by allowing a configurable OCI entrypoint in Rockcraft. The feature was implemented in Rockcraft 1.14.0 via the entrypoint-command key (PR #939), but the issue remains open and unlabelled.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 70
Confidence: 85
Support Request: 20
keep open Request to make Pebble optional by allowing configurable image entry points in Rockcraft. Maintainers discussed trade-offs and acknowledged the request, but it remains unlabelled and unassigned after over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 88
Complexity: 72
Confidence: 78
Support Request: 10
needs triage Feature request to make Pebble optional by allowing configurable image entry points. Discussion occurred but lacks labels, assignee, or formal prioritization after 14 months of inactivity.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 75
Confidence: 70
Support Request: 10
needs triage Request to make Rockcraft image entry point configurable to allow optional Pebble usage. Discussed with maintainers but remains open without labels, assignee, or concrete implementation plan after over a year of inactivity.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 60
Confidence: 75
Support Request: 20
needs triage Requests configurable Rockcraft entry points to make Pebble optional, improving upstream compatibility. Maintainers acknowledge the request and are discussing implementation, but the issue remains open with no assigned work.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/rockcraft#939 (confidence 92%)

    PR #939 'feat: add entrypoint-command' adds the entrypoint-command key that bypasses the default Pebble entrypoint, matching this issue's request exactly.

  • Related To: canonical/rockcraft#65 (confidence 55%)

    Related request to allow user configuration of the Pebble entrypoint binary.

Related issues

Issue Project State Summary Similarity
#745 Adds run_once_command rock build option rockcraft open Adds a run_once_command rockcraft build option to bypass the Pebble entrypoint for short-lived workloads (K8s Jobs, init containers, *ctl images). Pending, no CI, last activity 2024-11-05; maintainers deferred design to Pebble, and the need was later met by the entrypoint-command key.
72%