From 521ef175cd2b427a7031f61c34e5154d205bb418 Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 28 Aug 2024 13:04:49 -0500 Subject: [PATCH] chore: Add volume for persisting btop settings and update Docker Compose for local config directory mapping --- btop/Dockerfile | 3 +++ btop/Dockerfile.ttyd | 3 +++ btop/VERSION | 2 +- btop/docker-compose.yml | 5 +++-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/btop/Dockerfile b/btop/Dockerfile index 6781db0..8d701f6 100644 --- a/btop/Dockerfile +++ b/btop/Dockerfile @@ -23,5 +23,8 @@ ENV LANG C.UTF-8 # Expose the port gotty will run on EXPOSE 7681 +# Define a volume to persist btop settings +VOLUME ["/root/.config/btop"] + # Start gotty and run btop CMD ["gotty", "-p", "7681", "-w", "btop"] diff --git a/btop/Dockerfile.ttyd b/btop/Dockerfile.ttyd index 1d5d724..93e2941 100644 --- a/btop/Dockerfile.ttyd +++ b/btop/Dockerfile.ttyd @@ -31,5 +31,8 @@ ENV LANG C.UTF-8 # Expose the port ttyd will run on EXPOSE 7681 +# Define a volume to persist btop settings +VOLUME ["/root/.config/btop"] + # Start ttyd and run btop CMD ["ttyd", "-p", "7681", "-W", "btop"] diff --git a/btop/VERSION b/btop/VERSION index 81340c7..bbdeab6 100644 --- a/btop/VERSION +++ b/btop/VERSION @@ -1 +1 @@ -0.0.4 +0.0.5 diff --git a/btop/docker-compose.yml b/btop/docker-compose.yml index fb20c19..5e50ffa 100644 --- a/btop/docker-compose.yml +++ b/btop/docker-compose.yml @@ -1,7 +1,6 @@ -version: "3.8" # Specify the version of the Docker Compose file format +version: "3.8" services: - # Define the service named 'big-bear-btop' big-bear-btop: # Build the Docker image using the Dockerfile in the current directory build: . @@ -19,6 +18,8 @@ services: - /dev:/dev # Mount the host's /etc/localtime file to the container's /etc/localtime file (read-only) - /etc/localtime:/etc/localtime:ro + # Mount a local directory for persisting btop configuration files + - /path/to/local/btop/config:/root/.config/btop # Map port 7681 on the host to port 7681 on the container ports: - "7681:7681"