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

Feature "creating images on-the-fly" missing #478

Open
FibreFoX opened this issue Mar 21, 2023 · 1 comment
Open

Feature "creating images on-the-fly" missing #478

FibreFoX opened this issue Mar 21, 2023 · 1 comment

Comments

@FibreFoX
Copy link

Not sure if I'm resurrecting a zombie here, as #165 asked for this probably too, but as the testcontainers documentation at https://www.testcontainers.org/features/creating_images/ describes this as a feature, it feels weird that this feature is missing in the rust implementation. (I understand that this project is "work in progress", but this is a really important feature for me.)

As some time has passed now, do you see it possible to implement this feature somehow? Or at least prepare some documentation with some example project containing the proposed cargo buildscript approach?

For my scenario I want to make sure that my rust application is compatible to something like a generic Spring Boot application, where I am required to have a "sample project" nested inside my rust project, but only for testing-purposes. Therefor I have a separate Dockerfile which builds the custom Java application.

Right now I do not see a nice way to have the same testcontainers-feature like it exists in Java.

@thomaseizinger
Copy link
Collaborator

We build containers for our tests using a buildscript: https://github.com/testcontainers/testcontainers-rs/blob/dev/testimages/build.rs

You should be able to do something similar for your app.

The feature is indeed missing but I don't have a need for it nor the time to implement it unfortunately.

You are welcome to submit a design proposal in line with our design principles (see document in repository root). We can then discuss including it in the library :)

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

2 participants