Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make setcap target dynamic #119

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64

## Versions

* **04.12.24:** - Make setcap target dynamic.
* **07.11.24:** - Add go2rtc binary.
* **12.10.24:** - Allow uv to modify system python packages.
* **07.10.24:** - Switch to `uv` instead of `pip`.
Expand Down
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ init_diagram: |
"homeassistant:latest" <- Base Images
# changelog
changelogs:
- {date: "04.12.24:", desc: "Make setcap target dynamic."}
- {date: "07.11.24:", desc: "Add go2rtc binary."}
- {date: "12.10.24:", desc: "Allow uv to modify system python packages."}
- {date: "07.10.24:", desc: "Switch to `uv` instead of `pip`."}
Expand Down
4 changes: 3 additions & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-homeassistant/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

setcap 'cap_net_bind_service=+ep' /usr/local/bin/python3.12
PY_LOCAL_PATH=$(find /usr/local/lib -maxdepth 1 -name python* -type d)
PY_LOCAL_BIN=$(basename "${PY_LOCAL_PATH}")
setcap 'cap_net_bind_service=+ep' "/usr/local/bin/${PY_LOCAL_BIN}"

if [[ -z "${DISABLE_JEMALLOC+x}" ]]; then
export LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
Expand Down
Loading