-
Notifications
You must be signed in to change notification settings - Fork 143
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
[Feature request]: Allow specifiying the working directory #720
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Milestone
Comments
DDtKey
added
enhancement
New feature or request
help wanted
Extra attention is needed
good first issue
Good for newcomers
labels
Aug 11, 2024
Hi @nicmr 👋 Thank you for the request and references! 🙏 This shouldn’t be a problem to extend ContainerRequest and ImageExt I will be glad to accept a PR |
Hi @DDtKey, thank you for the hints. I've taken a look at the types you linked and |
DDtKey
pushed a commit
that referenced
this issue
Aug 25, 2024
Implements #720 by adding support for setting the working directory on `ImageExt` and `ContainerRequest`. Also adds a test for this feature. This is equivalent to the `-w, --workdir` flag of `docker run`. The abbreviation `working_dir` (as opposed to e.g. `working_directory`) was chosen to use the same name as the `bollard` crate.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Equivalent to the docker run
-w, --workdir
flag.This would be extremely useful for some workloads and allow for feature parity with other testcontainer implementations.
I might try to contribute this myself if I can find the time - I will leave a comment in this thread if I start working on it.
For reference:
The text was updated successfully, but these errors were encountered: