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

0.17.5 does not work with docker-compose 2.21.0 from docker desktop #424

Open
flozano opened this issue Sep 28, 2023 · 4 comments
Open

0.17.5 does not work with docker-compose 2.21.0 from docker desktop #424

flozano opened this issue Sep 28, 2023 · 4 comments

Comments

@flozano
Copy link

flozano commented Sep 28, 2023

With latest version (0.17.5 as of this issue), when using docker-compose v2.18.1, everything works fine. When docker-compose is updated to 2.21.0 (thru docker-desktop), we are getting:

> Task :composeUp FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':composeUp'.
> docker-compose version 0.0.0 doesn't support --scale option

relevant parts of stack-trace:

Caused by: java.lang.UnsupportedOperationException: docker-compose version 0.0.0 doesn't support --scale option
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at org.gradle.internal.classpath.intercept.CallInterceptorsSet$DecoratingCallSite.access$401(CallInterceptorsSet.java:128)
        at org.gradle.internal.classpath.intercept.CallInterceptorsSet$DecoratingCallSite$4.callOriginal(CallInterceptorsSet.java:180)
        at org.gradle.internal.classpath.intercept.CallInterceptorsSet$1.doIntercept(CallInterceptorsSet.java:54)
        at org.gradle.internal.classpath.intercept.CallInterceptorsSet$DecoratingCallSite.callConstructor(CallInterceptorsSet.java:177)
        at com.avast.gradle.dockercompose.ComposeExecutor.isScaleSupported(ComposeExecutor.groovy:274)
        at com.avast.gradle.dockercompose.ComposeExecutor$isScaleSupported$0.call(Unknown Source)
        at com.avast.gradle.dockercompose.tasks.ComposeUp.up(ComposeUp.groovy:129)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   
@flozano flozano changed the title 0.17.5 does not work with docker-compose 2.21.0 0.17.5 does not work with docker-compose 2.21.0 from docker desktop Sep 28, 2023
@flozano
Copy link
Author

flozano commented Sep 28, 2023

with 2.18.1:

$ docker-compose --version --short
2.18.1

with 2.21.0:

docker-compose --version --short
2.21.0-desktop.1

the trailing desktop.1 is probably causing the issue?

@augi
Copy link
Member

augi commented Sep 28, 2023

Hi, thank you for the report. Check this commit that should solve this issue (I'm also using Docker Desktop), also with test case covering this value.

@augi
Copy link
Member

augi commented Sep 28, 2023

I'm checking your stacktrace and don't have any explanation why this is happening 😢 Maybe could you also try to execute docker compose version --short?

@flozano
Copy link
Author

flozano commented Sep 28, 2023

$ docker compose version --short
2.21.0-desktop.1

We tried installing discrete docker-compose with brew, in order to fix, and it has different output:

$ docker-compose version --short
2.22.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants