woodpecker-ci / woodpecker

Woodpecker is a simple yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
3.95k stars 351 forks source link

Overriding 'entrypoint' in kubernetes backend does not work #3477

Closed everflux closed 2 months ago

everflux commented 4 months ago

Component

agent

Describe the bug

I have a workflow that specifies an entrypoint, during execution the following error is shown

Additional property entrypoint is not allowed

System Info

Woodpecker 2.3.0, docker.io/woodpeckerci/woodpecker-agent:v2.3.0

Additional context

Pipeline snippet

cache-baseimages:
    image: gcr.io/kaniko-project/warmer
    entrypoint:
    - /kaniko/warmer
    - --dockerfile=./Dockerfile

Validations

anbraten commented 4 months ago

related #3269

vjm commented 3 months ago

i am also interested in this -- i can't run buildpacks right now because this image doesn't have /bin/sh:

https://github.com/buildpacks/pack/blob/main/Dockerfile

Is there a workaround in the meantime?

anbraten commented 3 months ago

Is there a workaround in the meantime?

You would have to create a plugin from the underlying docker image as plugins are using predefined commands and entrypoints.

zc-devs commented 3 months ago

Is there a workaround in the meantime?

# wget https://raw.githubusercontent.com/buildpacks/pack/main/Dockerfile
# sed -i 's\FROM ${base_image}\FROM gcr.io/distroless/static:debug\' Dockerfile
# docker build -f Dockerfile .

😆