Skip to content

Commit

Permalink
chore: Update Dockerfile and entrypoint for btop to include themes di…
Browse files Browse the repository at this point in the history
…rectory and ensure config path is set correctly
  • Loading branch information
dragonfire1119 committed Aug 29, 2024
1 parent 0c6e085 commit 60b0ba7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions btop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion btop/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.7
0.0.8
5 changes: 4 additions & 1 deletion btop/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit 60b0ba7

Please sign in to comment.