From 01548e7da6a868cfbcde3f5845dc86b3cafecfc1 Mon Sep 17 00:00:00 2001 From: haiqi96 <14502009+haiqi96@users.noreply.github.com> Date: Tue, 13 Feb 2024 22:37:56 -0500 Subject: [PATCH] Remove unnecessary docker mounts from compress/search launch scripts. (#283) --- .../clp_package_utils/scripts/compress.py | 7 +------ .../clp-package-utils/clp_package_utils/scripts/search.py | 5 +---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/components/clp-package-utils/clp_package_utils/scripts/compress.py b/components/clp-package-utils/clp_package_utils/scripts/compress.py index 492e4074e..2e9417796 100755 --- a/components/clp-package-utils/clp_package_utils/scripts/compress.py +++ b/components/clp-package-utils/clp_package_utils/scripts/compress.py @@ -86,12 +86,7 @@ def main(argv): "--mount", str(mounts.clp_home), ] # fmt: on - necessary_mounts = [ - mounts.input_logs_dir, - mounts.data_dir, - mounts.logs_dir, - mounts.archives_output_dir, - ] + necessary_mounts = [mounts.input_logs_dir, mounts.data_dir, mounts.logs_dir] for mount in necessary_mounts: if mount: container_start_cmd.append("--mount") diff --git a/components/clp-package-utils/clp_package_utils/scripts/search.py b/components/clp-package-utils/clp_package_utils/scripts/search.py index 971c5be34..a421d3910 100755 --- a/components/clp-package-utils/clp_package_utils/scripts/search.py +++ b/components/clp-package-utils/clp_package_utils/scripts/search.py @@ -94,10 +94,7 @@ def main(argv): "--mount", str(mounts.clp_home), ] # fmt: on - necessary_mounts = [ - mounts.logs_dir, - mounts.archives_output_dir, - ] + necessary_mounts = [mounts.logs_dir] for mount in necessary_mounts: if mount: container_start_cmd.append("--mount")