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: reusable containers #1

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Conversation

matthiasschaub
Copy link
Collaborator

No description provided.

@matthiasschaub matthiasschaub changed the title feat: reuse containers feat: reusable containers Jul 3, 2024
@matthiasschaub matthiasschaub force-pushed the reusable_containers branch 2 times, most recently from 44660f1 to 74c8df1 Compare July 3, 2024 12:04
matthiasschaub and others added 12 commits July 8, 2024 09:40
do not create Ryuk cleanup instance if reuse enabled and container has
been start with `with_reuse`
🤖 I have created a release *beep* *boop*
---


##
[4.9.1](testcontainers/testcontainers-python@testcontainers-v4.9.0...testcontainers-v4.9.1)
(2025-01-21)


### Bug Fixes

* milvus healthcheck: use correct requests errors
([testcontainers#759](testcontainers#759))
([78b137c](testcontainers@78b137c))
* **mysql:** add dialect parameter instead of hardcoded mysql dialect
([testcontainers#739](testcontainers#739))
([8d77bd3](testcontainers@8d77bd3))
* **tests:** replace dind-test direct docker usage with sdk
([testcontainers#750](testcontainers#750))
([ace2a7d](testcontainers@ace2a7d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…estcontainers#769)

When invoking `.start()` multiple times on the same `DockerContainer`
instance, the call fails with `ValueError: The org.testcontainers
namespace is reserved for internal use` error.

Example code:

```
from testcontainers.core.container import DockerContainer
container = DockerContainer("alpine:latest").with_kwargs(labels={})
container.start()
container.stop()
container.start()
```

The fix is to update labels for the container in a copy of the
user-provided dictionary, so that:
* the code doesn't mutate user structures
* avoid side effects, allowing for multiple .start() invocations
Fixed a typo which I ran into while working a bugfix.
testcontainers#766)

@alexanderankin We already discussed last year that we only want to
support the latest Keycloak version.

I added the `latest` tag to test parameterization so we get a better
feedback for future Keycloak updates.

Fixes testcontainers#764

---------

Co-authored-by: David Ankin <[email protected]>
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.

4 participants