Artem Medvedev
Artem Medvedev
It's definitely not related to this PR and seems flaky - yes. For some reason, I think it happens only on `nightly` channel (might be coincidence though) π€ Need to...
Thank you for quick changes! β€οΈ
Hi @kaning! Itβs similar to a request here https://github.com/testcontainers/testcontainers-rs/issues/669 (you can find a workaround there for now) We need to consider adding this functionality for database-modules (like in Java). At...
I don't think we need to close the issue. Because it seems to be a common use-case and we still need to consider/add this functionality
I think it should be `&str`, most common use-case is to pass some static script. Rust provides convenient `include_str!` macro if you need a file content
Now it's possible by utilizing [with_copy_to](https://docs.rs/testcontainers/0.23.0/testcontainers/core/trait.ImageExt.html#tymethod.with_copy_to) (thanks to @guenhter π ) So the easiest way at the moment is: ```rs let image = Postgres::default() .with_copy_to( "/docker-entrypoint-initdb.d/init.sql", include_bytes!("initdb.sql").to_vec(), // path to...
Hi! Could you elaborate on this? What's the case? The container performs some work and you want it to finish before proceeding with your flow? Currently there is no such...
[ExitWaitStrategy](https://docs.rs/testcontainers/0.20.0/testcontainers/core/wait/struct.ExitWaitStrategy.html) has been implemented and released in `0.20.0` π There is no need in workaround anymore (it was generally possible using logs, but that's dirty)
It's generally expected, see the documentation for [ExecResult::exit_code](https://docs.rs/testcontainers/0.23.1/testcontainers/core/struct.ExecResult.html#method.exit_code) > Returns the exit code of the executed command. If the command has not yet exited, this will return None. In order...
Yes, you're right. It will wait for particular exit code and will return an error if actual one doesn't match with expected (`ExecError::ExitCodeMismatch`). We can consider shortcut "WaitCmdFor::Finish" which will...