Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker default platform to data explorer #841

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/fondant/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ def run_explorer_app( # type: ignore # noqa: PLR0913
]

try:
subprocess.check_call(cmd, stdout=subprocess.PIPE) # nosec
subprocess.check_call( # nosec
cmd,
stdout=subprocess.PIPE,
env=dict(os.environ, DOCKER_DEFAULT_PLATFORM="linux/amd64"),
)
except subprocess.CalledProcessError as e:
raise SystemExit(e.returncode)

Expand Down
3 changes: 3 additions & 0 deletions tests/test_explorer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from pathlib import Path
from unittest.mock import patch

Expand Down Expand Up @@ -69,6 +70,7 @@ def test_run_data_explorer_local_base_path(
"--detach",
],
stdout=-1,
env=dict(os.environ, DOCKER_DEFAULT_PLATFORM="linux/amd64"),
)


Expand Down Expand Up @@ -116,6 +118,7 @@ def test_run_data_explorer_remote_base_path(
"--detach",
],
stdout=-1,
env=dict(os.environ, DOCKER_DEFAULT_PLATFORM="linux/amd64"),
)


Expand Down
Loading