fix(cli): Make datahub quickstart work with latest docker compose in M1 (#6891)

Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
This commit is contained in:
Pedro Silva 2022-12-30 10:33:18 +00:00 committed by GitHub
parent e81a3ad26d
commit 594fc1bf5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,15 +71,8 @@ class Architectures(Enum):
@functools.lru_cache()
def _docker_subprocess_env() -> Dict[str, str]:
try:
DOCKER_COMPOSE_PLATFORM: Optional[str] = (
subprocess.run(["uname", "-m"], stdout=subprocess.PIPE)
.stdout.decode("utf-8")
.rstrip()
)
except FileNotFoundError:
# On Windows, uname is not available.
DOCKER_COMPOSE_PLATFORM = None
# platform.machine() is equivalent to `uname -m`, as per https://stackoverflow.com/a/45124927/5004662
DOCKER_COMPOSE_PLATFORM: str = "linux/" + platform.machine()
env = {
**os.environ,