Skip to content

Shell-form ENTRYPOINT is a footgun #78

@TriplEight

Description

@TriplEight

The Dockerfile uses ENTRYPOINT ./build-uboot.sh && ./build-kernel-mainline.sh && ... (shell form). That means CMD is silently ignored - docker run fobl bash runs the full pipeline, not a shell. You only discover this when you wonder why overriding the command does nothing. Switching to exec form with a wrapper script (ENTRYPOIN ["/entrypoint.sh"]) would make partial runs and debugging straightforward.

Came up during build verification in #76 - had to use --entrypoint bash to run individual scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions