-
Notifications
You must be signed in to change notification settings - Fork 292
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
Bug: DockerImage path arg is misleading #610
Comments
so, that's a mistake - I'm pretty busy with my job these days but will review patches, seems like something to fix (and add re: build/args). i might even argue for calling adding build/args a fix, as it makes our api more congruent with the docker api. |
I'll take a look at it. |
Err... /edit: locally they look better but you have to |
i think that makes sense if you are on windows. its on my list to find a piece of terraform code that creates a windows VM in aws, so i can develop against windows, lots of challenges there. (cc @kiview) |
@black-snow you should be |
@alexanderankin I'm on Ubuntu 24 right now. Even with all the extras 30 tests still fail. |
From https://docker-py.readthedocs.io/en/stable/images.html#docker.models.images.ImageCollection.build it's not very clear what exactly the It's totally fine to /edit: okay |
@black-snow do you have your docker socket visible to your user? e.g. i think by default the docker socket has these permissions:
and then you need to be in the docker group:
|
@alexanderankin I have Docker Desktop on this machine an it keeps the sockets in Never bothered to check on this machine - actually I'm not in the /edit |
i opened #621 so that I can find this discussion easier later, never heard of docker desktop on linux before |
🤖 I have created a release *beep* *boop* --- ## [4.7.0](testcontainers-v4.6.0...testcontainers-v4.7.0) (2024-06-28) ### Features * **core:** Added Generic module ([#612](#612)) ([e575b28](e575b28)) * **core:** allow custom dockerfile path for image build and bypassing build cache ([#615](#615)) ([ead0f79](ead0f79)), closes [#610](#610) * **core:** DockerCompose.stop now stops only services that it starts (does not stop the other services) ([#620](#620)) ([e711800](e711800)) ### Bug Fixes * **ollama:** Add support for ollama module ([#618](#618)) ([5442d05](5442d05)) * **cosmosdb:** Add support for the CosmosDB Emulator ([#579](#579)) ([8045a80](8045a80)) * improve ollama docs, s/ollama_dir/ollama_home/g ([#619](#619)) ([27f2a6b](27f2a6b)) * **kafka:** Add Kraft to Kafka containers ([#611](#611)) ([762d2a2](762d2a2)) ### Documentation * **contributing:** add contribution and new-container guide ([#460](#460)) ([3519f4b](3519f4b)) --- 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>
Describe the bug
testcontainers.core.image.DockerImage
has a constructor argpath
with the following docs:But actually this doesn't seem to be true. It's rather the context, the path to the directory to build in and the dockerfile itself must be named
Dockerfile
. Especially for testing this is very unhandy. I often have several dockerfiles in the same directory. I'd expect bein able to pass acontext
and the actualpath
to the dockerfile, likeTo Reproduce
test.Dockerfile
with DockerImage(path="./test.Dockerfile", tag="test") as image: ...
Runtime environment
not relevant
P.S.: build-args would also be handy
The text was updated successfully, but these errors were encountered: