From e282f2813504b1ab306d9be1eca9a48fc58cb613 Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Wed, 31 May 2023 13:44:53 -0700 Subject: [PATCH] Add support for apple silicon to docker testing container --- bin/docker_detection_tester/modules/container_manager.py | 2 +- bin/docker_detection_tester/modules/splunk_container.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/docker_detection_tester/modules/container_manager.py b/bin/docker_detection_tester/modules/container_manager.py index eaa1f8e733..f4ed34f555 100644 --- a/bin/docker_detection_tester/modules/container_manager.py +++ b/bin/docker_detection_tester/modules/container_manager.py @@ -294,7 +294,7 @@ class ContainerManager: "that this could take a long time depending on your " "connection. It's around 2GB."%(container_name)) pull_start_time = timeit.default_timer() - client.images.pull(container_name) + client.images.pull(container_name,platform="linux/amd64") pull_finish_time = timeit.default_timer() print("Successfully pulled the docker image [%s] in %ss"% (container_name, diff --git a/bin/docker_detection_tester/modules/splunk_container.py b/bin/docker_detection_tester/modules/splunk_container.py index 6ca1d649c1..e76716f1cb 100644 --- a/bin/docker_detection_tester/modules/splunk_container.py +++ b/bin/docker_detection_tester/modules/splunk_container.py @@ -184,6 +184,7 @@ class SplunkContainer: name=self.container_name, mounts=self.mounts, detach=True, + platform="linux/amd64" ) return container