Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(labels):Add common testcontainers labels (#519)
- Closes: #510 Aligns with other test container projects Example: I also contribute to go project, those labels look like ``` "maintainer": "[email protected]", "org.opencontainers.image.ref.name": "ubuntu", "org.opencontainers.image.version": "20.04", "org.testcontainers": "true", "org.testcontainers.lang": "go", "org.testcontainers.sessionId": "e01aa90cfb75a53fbd53776b8c2eb84a99e3f1c8a7103512468cf75735421176", "org.testcontainers.version": "0.30.0" ``` Java appears to do similar - https://github.com/testcontainers/testcontainers-java/blob/main/core/src/main/java/org/testcontainers/DockerClientFactory.java#L51 I didn't add in the image info as there wasn't an obvious way to get a handle on that nor obvious value. Another thing is that the python prefers `session-id` to `sessionId`. I'm not sure if there are any cross-language reasons to have those be identical, I left it alone. Also this adds in tests for the label code. --------- Co-authored-by: bstrausser <[email protected]> Co-authored-by: David Ankin <[email protected]>
- Loading branch information