Skip to content

Commit 78b99f1

Browse files
committed
feat(deployment): Migrate package orchestration to Docker Compose (resolves #1177).
1 parent 0c9a035 commit 78b99f1

File tree

3 files changed

+563
-905
lines changed

3 files changed

+563
-905
lines changed

components/clp-package-utils/clp_package_utils/general.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ def check_dependencies():
141141
)
142142
except subprocess.CalledProcessError:
143143
raise EnvironmentError("docker cannot run without superuser privileges (sudo).")
144+
try:
145+
subprocess.run(
146+
["docker", "compose", "version"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=True
147+
)
148+
except subprocess.CalledProcessError:
149+
raise EnvironmentError("docker-compose is not installed")
144150

145151

146152
def is_container_running(container_name):
@@ -394,10 +400,10 @@ def load_config_file(
394400
validate_path_for_container_mount(clp_config.data_directory)
395401
validate_path_for_container_mount(clp_config.logs_directory)
396402

397-
# Make data and logs directories node-specific
398-
hostname = socket.gethostname()
399-
clp_config.data_directory /= hostname
400-
clp_config.logs_directory /= hostname
403+
# # Make data and logs directories node-specific
404+
# hostname = socket.gethostname()
405+
# clp_config.data_directory /= hostname
406+
# clp_config.logs_directory /= hostname
401407

402408
return clp_config
403409

0 commit comments

Comments
 (0)