Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] entrypoint configured as ] when building from scratch with ENTRYPOINT-less base image #141

Closed
dannywebster opened this issue May 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dannywebster
Copy link

Version

redhat-actions/push-to-registry@v2

Describe the bug

When building without a Containerfile, and using UBI8 (ubi8/ubi-minimal:8.10 or any other for that matter) - and not specifying entrypoint, buildah config ends up writing this:

/usr/bin/buildah config --entrypoint ] working-container

.. and the resulting image's manifest:

  "Entrypoint": [
         "/bin/sh",
         "-c",
         "]"
   ],

This bracket is being returned from this line.

Note, that the UBI image in question has no ENTRYPOINT, but does have a CMD as per its Dockerfile. I saw in an older buildah issue, that in the presence of an ENTRYPOINT, CMD should be ignored, but this doesn't seem to be the case, as when I do specify an entrypoint to the action, we end up with both:

 "Cmd": [
                "/bin/bash"
            ],
            "Entrypoint": [
                "bash"
            ],

I've tried this with/without OCI - no difference.

Steps to reproduce, workflow links, screenshots

This is all with buildah version 1.33.7 (image-spec 1.1.0-rc.5, runtime-spec 1.1.0)

The step and its enumerated inputs:

- name: Build Image via Buildah
      uses: redhat-actions/buildah-build@v2
      with:
        oci: true
        base-image: registry.access.redhat.com/ubi8/ubi-minimal:8.10
        image: localhost/foo
        tags: 0.1
        content: somedir

Cheers!

@dannywebster dannywebster added the bug Something isn't working label May 23, 2024
@dannywebster
Copy link
Author

closing as dupe of #136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant