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

The working directory of service containers is not respected #434

Open
jheino opened this issue Apr 5, 2024 · 0 comments
Open

The working directory of service containers is not respected #434

jheino opened this issue Apr 5, 2024 · 0 comments

Comments

@jheino
Copy link

jheino commented Apr 5, 2024

If a Drone pipeline has a services section, the service containers within are started with the working directory set to the Drone workspace (i.e. /tmp/aws/drone/src) when using the AWS runner. This is different from the Docker runner which retains the working directory set by a WORKDIR statement in the Dockerfile.

AWS runner overriding the working directory for services is problematic because some services/containers may depend on being started inside a specific directory. At the very least, the behaviour should be documented and consistent with other types of runners. There is an undocumented(?) setting working_dir which AFAIU should allow the user to override the directory, but the setting doesn't do anything when the AWS runner is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant