Skip to content

Commit

Permalink
try kou's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Jun 19, 2024
1 parent 7800873 commit 1b938b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev/archery/archery/docker/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,6 @@ def run(self, service_name, command=None, *, env=None, volumes=None,
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])

Expand All @@ -399,6 +395,10 @@ def run(self, service_name, command=None, *, env=None, volumes=None,
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)
Expand Down

0 comments on commit 1b938b8

Please sign in to comment.