From 60b0ba75ee6c6bd5e603e834028ce98464e913f6 Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 28 Aug 2024 20:23:41 -0500 Subject: [PATCH] chore: Update Dockerfile and entrypoint for btop to include themes directory and ensure config path is set correctly --- btop/Dockerfile | 3 +++ btop/VERSION | 2 +- btop/entrypoint.sh | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/btop/Dockerfile b/btop/Dockerfile index 34e5233..e78ff1b 100644 --- a/btop/Dockerfile +++ b/btop/Dockerfile @@ -23,6 +23,9 @@ ENV LANG C.UTF-8 # Create default config directory RUN mkdir -p /root/.config/btop.default +# Create themes directory +RUN mkdir -p /root/.config/btop/themes + # Copy the default btop.conf to a separate directory COPY btop.conf /root/.config/btop.default/btop.conf diff --git a/btop/VERSION b/btop/VERSION index 5a5831a..d169b2f 100644 --- a/btop/VERSION +++ b/btop/VERSION @@ -1 +1 @@ -0.0.7 +0.0.8 diff --git a/btop/entrypoint.sh b/btop/entrypoint.sh index 7f6d458..2653c64 100644 --- a/btop/entrypoint.sh +++ b/btop/entrypoint.sh @@ -6,8 +6,11 @@ if [ ! -f /root/.config/btop/btop.conf ]; then cp /root/.config/btop.default/btop.conf /root/.config/btop/btop.conf # Copy default themes if they don't exist - cp /usr/share/btop/themes /root/.config/btop/themes + cp -rn /usr/share/btop/themes/* /root/.config/btop/themes fi +# Set HOME to root to ensure the correct configuration path +export HOME=/root + # Execute the provided command (in this case, gotty and btop) exec "$@"