From c9cf74acedaf661103722467d817fe94ec38c37f Mon Sep 17 00:00:00 2001 From: Brian Mesick Date: Thu, 5 Dec 2024 12:12:23 -0500 Subject: [PATCH] fix: Set Clickhouse data dir permissions On the Sumac sandbox we've seen errors regarding the ability of ClickHouse to write to its bind mounted data directory. This hasn't seemed to have impacted usability, and hasn't appeared elsewhere that we have seen. This fix was suggested by Regis, and doesn't seem to break anything in local testing but we have no ability to reproduce the issue so it's speculative. --- tutoraspects/patches/local-docker-compose-permissions-command | 1 + tutoraspects/patches/local-docker-compose-permissions-volumes | 1 + 2 files changed, 2 insertions(+) create mode 100644 tutoraspects/patches/local-docker-compose-permissions-command create mode 100644 tutoraspects/patches/local-docker-compose-permissions-volumes diff --git a/tutoraspects/patches/local-docker-compose-permissions-command b/tutoraspects/patches/local-docker-compose-permissions-command new file mode 100644 index 00000000..94848557 --- /dev/null +++ b/tutoraspects/patches/local-docker-compose-permissions-command @@ -0,0 +1 @@ +{% if RUN_CLICKHOUSE %}setowner 101 /mounts/clickhouse{% endif %} diff --git a/tutoraspects/patches/local-docker-compose-permissions-volumes b/tutoraspects/patches/local-docker-compose-permissions-volumes new file mode 100644 index 00000000..2effb8b0 --- /dev/null +++ b/tutoraspects/patches/local-docker-compose-permissions-volumes @@ -0,0 +1 @@ +{% if RUN_CLICKHOUSE %}- ../../data/clickhouse:/mounts/clickhouse/{% endif %}