kou commented on PR #42009:
URL: https://github.com/apache/arrow/pull/42009#issuecomment-2174781060
Ah, sorry. My patch was wrong. How about this?
```diff
diff --git a/dev/archery/archery/docker/core.py
b/dev/archery/archery/docker/core.py
index ec422e9aaf..5be4887ea4 100644
--- a/dev/archery/archery/docker/core.py
+++ b/dev/archery/archery/docker/core.py
@@ -383,10 +383,6 @@ class DockerCompose(Command):
args.append(f'--memory={memory}')
args.append(f'--memory-swap={memory}')
- # get the actual docker image name instead of the compose
service
- # name which we refer as image in general
- args.append(service['image'])
-
if user is not None:
args.extend(['-u', user])
@@ -399,6 +395,10 @@ class DockerCompose(Command):
args.extend(['--volume', volume])
if use_docker:
+ # get the actual docker image name instead of the compose
service
+ # name which we refer as image in general
+ args.append(service['image'])
+
# add command from compose if it wasn't overridden
if command is not None:
args.append(command)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]