kou commented on code in PR #14501:
URL: https://github.com/apache/arrow/pull/14501#discussion_r1004979472


##########
dev/archery/archery/docker/core.py:
##########
@@ -342,7 +342,8 @@ def run(self, service_name, command=None, *, env=None, 
volumes=None,
 
             # append env variables from the compose conf
             for k, v in service.get('environment', {}).items():
-                args.extend(['-e', '{}={}'.format(k, v)])
+                if v is not None:
+                    args.extend(['-e', '{}={}'.format(k, v)])

Review Comment:
   It seems that we need to get an environment variable value when `v` is 
`None` to emulate the `docker-compose` behavior:
   
   ```suggestion
                   if v is None:
                     v = os.environ.get(k)
                   if v is not None:
                       args.extend(['-e', '{}={}'.format(k, v)])
   ```



-- 
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]

Reply via email to