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

feat: add working_dir to ContainerRequest,ImageExt #724

Merged
merged 3 commits into from
Aug 25, 2024

Conversation

nicmr
Copy link
Contributor

@nicmr nicmr commented 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.

Copy link

netlify bot commented Aug 25, 2024

Deploy Preview for testcontainers-rust ready!

Name Link
🔨 Latest commit 89ffd0f
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-rust/deploys/66cb9211202d660008736ed1
😎 Deploy Preview https://deploy-preview-724--testcontainers-rust.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@DDtKey DDtKey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for the contribution! 🚀

testcontainers/src/core/containers/request.rs Show resolved Hide resolved
@nicmr nicmr requested a review from DDtKey August 25, 2024 20:30
@DDtKey DDtKey enabled auto-merge (squash) August 25, 2024 21:47
@DDtKey DDtKey merged commit 5dff97f into testcontainers:main Aug 25, 2024
12 checks passed
@github-actions github-actions bot mentioned this pull request Aug 30, 2024
DDtKey pushed a commit that referenced this pull request Aug 30, 2024
## 🤖 New release
* `testcontainers`: 0.21.1 -> 0.22.0

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

## [0.22.0] - 2024-08-30

### Details
#### Bug Fixes
- [❗] Docker socket detection on unix
([#721](#721))

#### Features
- Add `working_dir` to `ContainerRequest`,`ImageExt`
([#724](#724))

#### Miscellaneous Tasks
- Added `#![forbid(unsafe_code)]` to the library
([#722](#722))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants