Skip to content

Commit 6c6de99

Browse files
authored
fix(deployment): Update archives directory mount paths in Presto Docker Compose project to match the CLP package Compose project (fixes #1496). (#1500)
1 parent 9e82bdb commit 6c6de99

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tools/deployment/presto-clp/docker-compose.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,18 @@ services:
3434
- "coordinator-common.env"
3535
- "worker.env"
3636
volumes:
37+
- "${CLP_ARCHIVES_DIR:-empty}:/var/data/archives:ro"
38+
- "${CLP_STAGED_ARCHIVES_DIR:-empty}:/var/data/staged-archives:ro"
3739
- "./worker/config-template:/configs:ro"
3840
- "./worker/scripts:/scripts:ro"
39-
- "${CLP_ARCHIVES_DIR}:${CLP_ARCHIVES_DIR}"
4041
- "worker-config:/opt/presto-server/etc"
4142
networks:
4243
- "presto"
4344

4445
volumes:
46+
# Dummy volume to use when a bind mount is not desired.
47+
empty:
48+
4549
coordinator-config:
4650
worker-config:
4751

tools/deployment/presto-clp/scripts/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _add_clp_env_vars(
124124
)
125125
)
126126
elif "s3" == clp_archive_output_storage_type:
127-
env_vars["CLP_ARCHIVES_DIR"] = str(
127+
env_vars["CLP_STAGED_ARCHIVES_DIR"] = str(
128128
_get_path_clp_config_value(
129129
clp_config,
130130
f"{archive_output_storage_key}.staging_directory",

0 commit comments

Comments
 (0)