-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] Docker & Docker compose installed from Homebrew not recognized #3476
Comments
Assigning it to you @lukas-vlcek since you have a PR already for this issue. |
- This commit adds location of docker binaries when installed via Homebrew on MacOS - Making initialization of the DockerAvailability thread-safe Notice that Homebrew can also be used on Linux, but we are not listing this default bin location for now. This means Linux users using brew to install docker will need to create a suitable alias as a workaround. Closes opensearch-project#3476 Signed-off-by: Lukáš Vlček <lukas.vlcek@aiven.io>
See opensearch-project#3476 Signed-off-by: Lukáš Vlček <lukas.vlcek@aiven.io>
Hi @lukas-vlcek what is pending on addressing this issue? Thanks |
Hi @lukas-vlcek , reaching out to you again. Are you still working on this and if so, could you please share what is pending on this issue? Thanks |
@minalsha I haven't been working on this recently. I can have a look at it starting on Mar 20, when I am back from PTO. |
@lukas-vlcek Maybe we should keep this open since the issue is still there? we can close when we actually fix the problem one way or another? |
@dblock Sure, we can keep this open for now. But just for the context, this path is not what would allow me to run full OpenSearch testing suite including tests that require docker/docker-compose, because I would need to install something that is not fully OSS or require license. My only alternative is going the "podman" direction. |
@lukas-vlcek I see, so your biggest objection is docker non-OSS? I would make it clear in the podman proposal, I would support it. |
Describe the bug
I am trying to setup dev environment on Mac M1 and I have docker installed from Homebrew (
brew install docker docker-compose;
). When I startassemble
task I get an exception about missing Docker binaries like this:I think the issue is that
brew
by default installs binaries into different location. See:The exception seems to be coming from
DockerSupportService.java
OpenSearch/buildSrc/src/main/java/org/opensearch/gradle/docker/DockerSupportService.java
Line 165 in e9b19a0
It does not currently check for Docker binaries in the location where brew installs it.
To Reproduce
Steps to reproduce the behavior:
A fresh pull from
main
:Run
assemble
task.Expected behavior
DockerSupportService.java
should be able to detect Docker tools in location used bybrew
.Host/Environment (please complete the following information):
% uname -a Darwin Lukass-MacBook-Pro.local 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered: