Add files
This commit is contained in:
parent
dfc911f9ad
commit
08e66c8237
2 changed files with 31 additions and 0 deletions
23
Dockerfile
Normal file
23
Dockerfile
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
FROM fedora:40
|
||||||
|
|
||||||
|
LABEL maintainer="TechTransThai" \
|
||||||
|
description="Fedora image for BOINC client."
|
||||||
|
|
||||||
|
# Global environment settings
|
||||||
|
ENV BOINC_GUI_RPC_PASSWORD="123" \
|
||||||
|
BOINC_REMOTE_HOST="127.0.0.1" \
|
||||||
|
BOINC_CMD_LINE_OPTIONS=""
|
||||||
|
|
||||||
|
# Copy files
|
||||||
|
COPY bin/ /usr/bin/
|
||||||
|
|
||||||
|
# Configure
|
||||||
|
WORKDIR /var/lib/boinc
|
||||||
|
|
||||||
|
# BOINC RPC port
|
||||||
|
EXPOSE 31416
|
||||||
|
|
||||||
|
# Install
|
||||||
|
RUN dnf install boinc-client -y
|
||||||
|
|
||||||
|
CMD ["start-boinc.sh"]
|
8
bin/start-boinc.sh
Executable file
8
bin/start-boinc.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Configure the GUI RPC
|
||||||
|
echo $BOINC_GUI_RPC_PASSWORD > /var/lib/boinc/gui_rpc_auth.cfg
|
||||||
|
echo $BOINC_REMOTE_HOST > /var/lib/boinc/remote_hosts.cfg
|
||||||
|
|
||||||
|
# Run BOINC. Full path needs for GPU support.
|
||||||
|
exec /usr/bin/boinc $BOINC_CMD_LINE_OPTIONS
|
Loading…
Reference in a new issue