Skip to content

Commit f2928a5

Browse files
authored
fix: podman create requires dummy command for static plugin images (#2551)
fix: provide dummy command to podman create for static plugin images Plugin OCI images are static file bundles with no CMD or ENTRYPOINT. Running 'podman create' without a command argument fails with: Error: no command or entrypoint provided, and no CMD or ENTRYPOINT from image Fix: Pass /bin/true as a dummy command. The container is never run, just created so we can extract files with podman cp. Fixes instrumentation job failure on PR #2550. Ref: https://github.com/redhat-developer/rhdh-plugin-export-overlays/actions/runs/26902663501
1 parent 95216fb commit f2928a5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/instrument-plugin.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ while IFS= read -r PROD_IMAGE; do
115115

116116
# Create temp container and extract plugin bundle
117117
WORK_DIR=$(mktemp -d)
118-
CID=$(podman create "$PROD_IMAGE")
118+
# Plugin images are static bundles with no CMD/ENTRYPOINT, so we provide a dummy command
119+
CID=$(podman create "$PROD_IMAGE" /bin/true)
119120

120121
if ! podman cp "$CID:$PLUGIN_PATH/dist" "$WORK_DIR/dist-original"; then
121122
echo " ❌ Failed to extract plugin bundle from container - skipping"

0 commit comments

Comments
 (0)