How does Woodpecker start the container? (Can I make a login shell?) #5853
Replies: 2 comments
-
|
Addendum: it took me rather longer to find the source of this problem than I expected because: does seem to start a login shell. But maybe that's expected since it also gives me a shell prompt. |
Beta Was this translation helpful? Give feedback.
-
|
To get it right: Your container is rootless? And you would like to run the WP runs this as entrypoint: https://github.com/woodpecker-ci/woodpecker/blob/main/pipeline/backend/common/script.go#L31 (you can customize that with https://woodpecker-ci.org/docs/usage/workflow-syntax#entrypoint). Anything else is handled by the shell itself. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure if this is a CI question or a Docker question. I have a step that runs like this:
The container sets the user to "builder", and I can see that that is the user, but from the
$PATH, it's clear that the builder's.bashrchasn't been sourced. I can work around this with:bash -l -c "echo $PATH"but I wonder if I've overlooked something. (Or if I'm just doing it wrong.)Beta Was this translation helpful? Give feedback.
All reactions