diff --git a/docker/boinc-client/README.md b/docker/boinc-client/README.md index 65f8ef6..fdbe4bf 100644 --- a/docker/boinc-client/README.md +++ b/docker/boinc-client/README.md @@ -1,5 +1,7 @@ # Boinc client on Docker +> See my custom image at [container-image-boinc-client](https://gitlab.com/mckie/container-image-boinc-client). + ## Table of contents 1. [Parameters](#parameters) diff --git a/docker/boinc-client/amdgpu.docker-compose.yml b/docker/boinc-client/amdgpu.docker-compose.yml index 0da6c49..81bb5d9 100644 --- a/docker/boinc-client/amdgpu.docker-compose.yml +++ b/docker/boinc-client/amdgpu.docker-compose.yml @@ -24,9 +24,8 @@ services: - video volumes: - /etc/resolv.conf:/etc/resolv.conf:ro - - ./data:/var/lib/boinc + - ${PWD}/data:/var/lib/boinc environment: - BOINC_CMD_LINE_OPTIONS=--allow_remote_gui_rpc - BOINC_GUI_RPC_PASSWORD=123 - - BOINC_REMOTE_HOST=192.168.1.1 - TZ=Europe/Dublin diff --git a/docker/boinc-client/data/cc_config.xml b/docker/boinc-client/data/cc_config.xml deleted file mode 100644 index 0c00ee6..0000000 --- a/docker/boinc-client/data/cc_config.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - 1 - - - 1 - - - 1 - - - 1 - - - 1 - - - - - - 1 - 1 - 1 - - - diff --git a/docker/boinc-client/data/global_prefs_override.xml b/docker/boinc-client/data/global_prefs_override.xml deleted file mode 100644 index 915a3cb..0000000 --- a/docker/boinc-client/data/global_prefs_override.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - http://bam.boincstats.com/ - - - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - 3 - - - 1024 - 100 - 100 - 75 - 100 - 90 - 100 - 1024 - 90 - 1 - 0 - 0 - - - 0 - 0 - - - 10 - 60 - - diff --git a/docker/boinc-client/intel.docker-compose.yml b/docker/boinc-client/intel.docker-compose.yml index 503553b..674a8a4 100644 --- a/docker/boinc-client/intel.docker-compose.yml +++ b/docker/boinc-client/intel.docker-compose.yml @@ -21,7 +21,7 @@ services: - /dev/dri:/dev/dri volumes: - /etc/resolv.conf:/etc/resolv.conf:ro - - ./data:/var/lib/boinc + - ${PWD}/data:/var/lib/boinc environment: - BOINC_CMD_LINE_OPTIONS=--allow_remote_gui_rpc - BOINC_GUI_RPC_PASSWORD=123 diff --git a/docker/boinc-client/intel.opensuse.dockerfile b/docker/boinc-client/intel.opensuse.dockerfile deleted file mode 100644 index 03e5aa6..0000000 --- a/docker/boinc-client/intel.opensuse.dockerfile +++ /dev/null @@ -1,38 +0,0 @@ -# docker build -t 'michelecereda/boinc-client:intel-tw-7.24.1' -f 'intel.opensuse.dockerfile' . -# docker run --rm --name 'boinc' --net='host' --pid='host' \ -# --device '/dev/dri:/dev/dri' -v './data:/var/lib/boinc' \ -# -e BOINC_GUI_RPC_PASSWORD="123" -e BOINC_CMD_LINE_OPTIONS="--allow_remote_gui_rpc" \ -# 'michelecereda/boinc-client:intel-tw-7.24.1' - -FROM registry.opensuse.org/opensuse/tumbleweed:20231226 - -LABEL maintainer="michelecereda" \ - description="Intel GPU-savvy 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 start-boinc.sh /usr/bin/ - -# Configure -WORKDIR /var/lib/boinc - -# BOINC RPC port -EXPOSE 31416 - -# Install -RUN zypper install -y --no-recommends \ - # Time Zone Database - timezone=2023c-1.5 \ - # BOINC client - boinc-client=7.24.1-1.2 \ - # OpenCL ICD Loader - ocl-icd-devel=2.3.1-2.1 \ - # Intel NEO OpenCL - intel-opencl=23.22.26516.18-1.2 \ - && zypper clean -a - -CMD ["start-boinc.sh"] diff --git a/docker/boinc-client/pi.docker-compose.yml b/docker/boinc-client/pi.docker-compose.yml index fd85d3c..db3446d 100644 --- a/docker/boinc-client/pi.docker-compose.yml +++ b/docker/boinc-client/pi.docker-compose.yml @@ -15,9 +15,8 @@ services: network_mode: host pid: host volumes: - - ./data:/var/lib/boinc + - ${PWD}/data:/var/lib/boinc environment: - BOINC_CMD_LINE_OPTIONS=--allow_remote_gui_rpc - BOINC_GUI_RPC_PASSWORD=123 - - BOINC_REMOTE_HOST=192.168.1.1 - TZ=Europe/Dublin diff --git a/docker/boinc-client/start-boinc.sh b/docker/boinc-client/start-boinc.sh deleted file mode 100755 index 968ba45..0000000 --- a/docker/boinc-client/start-boinc.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Originally from: -# https://github.com/BOINC/boinc-client-docker/blob/master/bin/start-boinc.sh - -# 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 diff --git a/docker/syncthing/docker-compose.yml b/docker/syncthing/docker-compose.yml index 85141a5..97f9301 100644 --- a/docker/syncthing/docker-compose.yml +++ b/docker/syncthing/docker-compose.yml @@ -3,14 +3,14 @@ version: "3" services: syncthing: - image: syncthing/syncthing:1.27.2 + image: syncthing/syncthing:1.27.3 container_name: syncthing hostname: ${HOSTNAME} environment: - PUID=1000 - PGID=100 volumes: - - ./config:/var/syncthing/config - - ./data:/var/syncthing/data + - ${PWD}/config:/var/syncthing/config + - ${PWD}/data:/var/syncthing/data network_mode: host restart: unless-stopped diff --git a/feeds.opml b/feeds.opml index 2d039b3..5c19061 100644 --- a/feeds.opml +++ b/feeds.opml @@ -22,7 +22,6 @@ - diff --git a/knowledge base/acl.md b/knowledge base/acl.md index cb32301..a6bb238 100644 --- a/knowledge base/acl.md +++ b/knowledge base/acl.md @@ -17,9 +17,10 @@ BSD systems use NFSv4 ACLs by default in ZFS. List of **NFSv4** [permission tags][syntax descriptions for setting acls] and [inheritance options][acl inheritance]. ```sh -# Install the tool. +# Install the tools. apt install 'acl' dnf install 'acl' +zypper install 'acl' # Show ACLs. getfacl 'path/to/file' @@ -127,11 +128,15 @@ setfacl -a '5' 'everyone@:r-x---a-R-c---:-d-----:allow' 'path/to/dir' - [`setfacl` FreeBSD manual page][setfacl freebsd manual page] - [Syntax descriptions for setting ACLs] - [ACL inheritance] +- [`chmod`][chmod] for how to force new files to be owned by specific users or groups + +[chmod]: chmod.md + [access control lists (acl) in linux]: https://www.geeksforgeeks.org/access-control-listsacl-linux/ [acl inheritance]: https://docs.oracle.com/cd/E19253-01/819-5461/gbaax/index.html diff --git a/knowledge base/chmod.md b/knowledge base/chmod.md index 8034553..687851c 100644 --- a/knowledge base/chmod.md +++ b/knowledge base/chmod.md @@ -9,10 +9,12 @@ chmod 'u=rw' "path/to/dir" chmod 'go+x' "path/to/file" # Set 'setuid' bit. +# Set on directories, forces new files to be owned by the same user by default. chmod '04755' "path/to/dir" chmod 'u-s' "path/to/file" # Set 'setgid' bit. +# Set on directories, forces new files to be owned by the same group by default. chmod '02775' "path/to/dir" chmod 'g+s' "path/to/file" diff --git a/knowledge base/cloud computing/aws/s3.md b/knowledge base/cloud computing/aws/s3.md index da1c646..2ee803c 100644 --- a/knowledge base/cloud computing/aws/s3.md +++ b/knowledge base/cloud computing/aws/s3.md @@ -99,6 +99,7 @@ Examples: [1][lifecycle configuration examples], [2][s3 lifecycle rules example - [Configure notification for lifecycle rules][lifecycle configure notification] - AWS' [CLI] +- [Expiring Amazon S3 objects based on last accessed date to decrease costs] ### Sources @@ -119,6 +120,7 @@ Examples: [1][lifecycle configuration examples], [2][s3 lifecycle rules example [cli subcommand reference]: https://docs.aws.amazon.com/cli/latest/reference/s3/ +[expiring amazon s3 objects based on last accessed date to decrease costs]: https://aws.amazon.com/blogs/architecture/expiring-amazon-s3-objects-based-on-last-accessed-date-to-decrease-costs/ [lifecycle configuration examples]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html [lifecycle configure notification]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configure-notification.html [lifecycle general considerations for transitions]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html diff --git a/knowledge base/docker.md b/knowledge base/docker.md index 80254e9..7700fc0 100644 --- a/knowledge base/docker.md +++ b/knowledge base/docker.md @@ -50,7 +50,7 @@ docker run -d --name 'boinc' --network='host' --pid='host' -v 'boinc:/var/lib/bo # Gracefully stop containers. docker stop 'alpine-test' -docker stop 'bdbe3f45' +docker stop -t '0' 'bdbe3f45' # Kill containers. docker kill 'alpine-test'