From c87625dfe948db17ae6807005c55204a028a9a5a Mon Sep 17 00:00:00 2001 From: MentalFS Date: Sun, 5 Jan 2025 14:37:34 +0100 Subject: [PATCH] Add `boinctui` again --- Dockerfile | 3 ++- README.md | 5 +++++ start | 26 +++++++++++++++++++++++++- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b42ab1e..7c12750 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,10 @@ FROM debian:stable-20241223-slim AS install RUN set -eux; \ export DEBIAN_FRONTEND=noninteractive; \ apt update; \ - for P in ca-certificates curl gnupg python3 libgl1 ocl-icd-libopencl1 libquadmath0; do \ + for P in ca-certificates curl gnupg python3 libgl1 ocl-icd-libopencl1 libquadmath0 boinctui vim-tiny; do \ apt -y install --no-install-recommends "${P}" || echo "ERROR: Could not install ${P}"; \ done; \ + update-alternatives --install /usr/bin/vim vim /usr/bin/vim.tiny 0 || echo WARNING; \ apt clean; rm -rf /var/lib/apt/lists/* /var/log/* ARG BOINC_REPO=stable RUN test -n "${BOINC_REPO}" \ diff --git a/README.md b/README.md index c3261eb..671d481 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,11 @@ More command info: docker exec boinc boinccmd --help ``` +Start boinctui: +```bash +docker exec -it boinc boinctui +``` + ## Notes diff --git a/start b/start index 2f84e49..430d40c 100755 --- a/start +++ b/start @@ -81,10 +81,34 @@ if [ "`whoami`" = "boinc" ]; then END fi + # tool setup + cat > "/var/lib/boinc-client/.boinctui.cfg" <<- END + + + localhost + ${GUI_RPC_AUTH} + 31416 + docker + + 2.7.0 + 1 + + END + cp -rn /etc/skel/. /var/lib/boinc-client/ + if [ ! -f "/var/lib/boinc-client/.vimrc" ]; then + cat > "/var/lib/boinc-client/.vimrc" <<- END + runtime! debian.vim + set mouse=a + map :tabnext + map :tabprevious + END + fi + if [ "$0" = "/bin/sh" ] && [ -z "$*" ]; then # This appears on the Docker Desktop Exec tab clear - boinccmd --get_task_summary sprce + boinctui + bash -l && exit || echo -n "\n[$0] `whoami`@`hostname`" echo fi fi