Skip to content

Commit fa2aff7

Browse files
committed
feat(deployment): Migrate package orchestration to Docker Compose (resolves #1177).
1 parent 3c45e12 commit fa2aff7

File tree

3 files changed

+570
-880
lines changed

3 files changed

+570
-880
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
@@ -150,6 +150,12 @@ def check_dependencies():
150150
)
151151
except subprocess.CalledProcessError:
152152
raise EnvironmentError("docker cannot run without superuser privileges (sudo).")
153+
try:
154+
subprocess.run(
155+
["docker", "compose", "version"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=True
156+
)
157+
except subprocess.CalledProcessError:
158+
raise EnvironmentError("docker-compose is not installed")
153159

154160

155161
def is_container_running(container_name):
@@ -432,10 +438,10 @@ def load_config_file(
432438
validate_path_for_container_mount(clp_config.data_directory)
433439
validate_path_for_container_mount(clp_config.logs_directory)
434440

435-
# Make data and logs directories node-specific
436-
hostname = socket.gethostname()
437-
clp_config.data_directory /= hostname
438-
clp_config.logs_directory /= hostname
441+
# # Make data and logs directories node-specific
442+
# hostname = socket.gethostname()
443+
# clp_config.data_directory /= hostname
444+
# clp_config.logs_directory /= hostname
439445

440446
return clp_config
441447

0 commit comments

Comments
 (0)