Skip to content

Commit

Permalink
Add boinctui again
Browse files Browse the repository at this point in the history
  • Loading branch information
MentalFS committed Jan 5, 2025
1 parent f465873 commit c87625d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ More command info:
docker exec boinc boinccmd --help
```

Start boinctui:
```bash
docker exec -it boinc boinctui
```


## Notes

Expand Down
26 changes: 25 additions & 1 deletion start
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,34 @@ if [ "`whoami`" = "boinc" ]; then
END
fi

# tool setup
cat > "/var/lib/boinc-client/.boinctui.cfg" <<- END
<boinctui_cfg>
<server>
<host>localhost</host>
<pwd>${GUI_RPC_AUTH}</pwd>
<port>31416</port>
<hostid>docker</hostid>
</server>
<version>2.7.0</version>
<transparent_background>1</transparent_background>
</boinctui_cfg>
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 <Tab> :tabnext<CR>
map <S-Tab> :tabprevious<CR>
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
Expand Down

0 comments on commit c87625d

Please sign in to comment.