From 7e9ecc9ae48ceac2332e942e68eb3d0b9be79530 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Wed, 28 Jan 2026 17:00:23 -0800 Subject: [PATCH] client: lib_gen: generate shared path layout If path does not exist prior to bind-mounting, path will be owned by root (and unwritable by DOCKER_FINANCE_USER). --- client/src/docker/lib/internal/lib_gen.bash | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/client/src/docker/lib/internal/lib_gen.bash b/client/src/docker/lib/internal/lib_gen.bash index cc5b8c2..0c43cb3 100644 --- a/client/src/docker/lib/internal/lib_gen.bash +++ b/client/src/docker/lib/internal/lib_gen.bash @@ -484,6 +484,16 @@ function lib_gen::__gen_client() # lib_gen::__gen_plugins + + # + # Generate shared path layout + # + + # TODO: consider supporting for dev-tools + [ -z "$global_platform" ] && lib_utils::die_fatal + if [ "$global_platform" != "dev-tools" ]; then + lib_gen::__gen_shared + fi } # Custom plugins layout to drop-in custom plugins @@ -511,6 +521,16 @@ function lib_gen::__gen_plugins() fi } +# Shared path layout to drop-in shared files +function lib_gen::__gen_shared() +{ + lib_utils::print_debug "Generating shared path" + [ -z "$DOCKER_FINANCE_CLIENT_SHARED" ] && lib_utils::die_fatal + if [ ! -d "$DOCKER_FINANCE_CLIENT_SHARED" ]; then + mkdir -p "$DOCKER_FINANCE_CLIENT_SHARED" || lib_utils::die_fatal + fi +} + function lib_gen::__gen_container() { lib_utils::print_debug "Generating container"