mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 02:17:53 +00:00
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:
parent
e81a3ad26d
commit
594fc1bf5a
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user