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

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

Closed
3 tasks done
everflux opened this issue Mar 11, 2024 · 4 comments · Fixed by #3269
Closed
3 tasks done

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

everflux opened this issue Mar 11, 2024 · 4 comments · Fixed by #3269
Labels
backend/kubernetes bug Something isn't working

Comments

@everflux
Copy link

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

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
@everflux everflux added the bug Something isn't working label Mar 11, 2024
@anbraten
Copy link
Member

related #3269

@vjm
Copy link

vjm commented Apr 29, 2024

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
Copy link
Member

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
Copy link
Contributor

zc-devs commented Apr 29, 2024

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 .

😆

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

Successfully merging a pull request may close this issue.

5 participants