Skip to content
This repository was archived by the owner on Jan 1, 2024. It is now read-only.

Commit 471c785

Browse files
committed
2nd try setting capabilities for Domoticz binary
1 parent 856ce9e commit 471c785

File tree

6 files changed

+10
-17
lines changed

6 files changed

+10
-17
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ RUN \
100100
-Wno-dev && \
101101
make && \
102102
make install && \
103-
echo "**** set capabilities for domoticz binary ****" && \
104-
setcap cap_net_raw=+eip /var/lib/domoticz/domoticz && \
105103
echo "**** install BroadlinkRM2 plugin dependencies ****" && \
106104
git clone https://github.com/mjg59/python-broadlink.git /tmp/python-broadlink && \
107105
cd /tmp/python-broadlink && \

Dockerfile.aarch64

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ RUN \
100100
-Wno-dev && \
101101
make && \
102102
make install && \
103-
echo "**** set capabilities for domoticz binary ****" && \
104-
setcap cap_net_raw=+eip /var/lib/domoticz/domoticz && \
105103
echo "**** install BroadlinkRM2 plugin dependencies ****" && \
106104
git clone https://github.com/mjg59/python-broadlink.git /tmp/python-broadlink && \
107105
cd /tmp/python-broadlink && \

Dockerfile.armhf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ RUN \
100100
-Wno-dev && \
101101
make && \
102102
make install && \
103-
echo "**** set capabilities for domoticz binary ****" && \
104-
setcap cap_net_raw=+eip /var/lib/domoticz/domoticz && \
105103
echo "**** install BroadlinkRM2 plugin dependencies ****" && \
106104
git clone https://github.com/mjg59/python-broadlink.git /tmp/python-broadlink && \
107105
cd /tmp/python-broadlink && \

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
[![Discord](https://img.shields.io/discord/354974912613449730.svg?style=flat-square&color=E68523&label=Discord&logo=discord&logoColor=FFFFFF)](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.")
55
[![Discourse](https://img.shields.io/discourse/https/discourse.linuxserver.io/topics.svg?style=flat-square&color=E68523&logo=discourse&logoColor=FFFFFF)](https://discourse.linuxserver.io "post on our community forum.")
66
[![Fleet](https://img.shields.io/static/v1.svg?style=flat-square&color=E68523&label=linuxserver.io&message=Fleet)](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
7-
[![GitHub](https://img.shields.io/static/v1.svg?style=flat-square&color=E68523&label=linuxserver.io&message=GitHub&logo=github&logoColor=FFFFFF)](https://github.com/linuxserver "view the source for all of our repositories.")
87
[![Podcast](https://img.shields.io/static/v1.svg?style=flat-square&color=E68523&label=linuxserver.io&message=Podcast)](https://anchor.fm/linuxserverio "on hiatus. Coming back soon (late 2018).")
9-
[![Open Collective](https://img.shields.io/opencollective/all/linuxserver.svg?style=flat-square&color=E68523&label=Supporters&logo=open%20collective&logoColor=FFFFFF)](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
8+
[![Open Collective](https://img.shields.io/opencollective/all/linuxserver.svg?style=flat-square&color=E68523&label=Open%20Collective%20Supporters)](https://opencollective.com/linuxserver "please consider helping us by either donating or contributing to our budget")
109

1110
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring :-
1211

@@ -21,20 +20,15 @@ Find us at:
2120
* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
2221
* [Discourse](https://discourse.linuxserver.io) - post on our community forum.
2322
* [Fleet](https://fleet.linuxserver.io) - an online web interface which displays all of our maintained images.
24-
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
2523
* [Podcast](https://anchor.fm/linuxserverio) - on hiatus. Coming back soon (late 2018).
2624
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
2725

2826
# [linuxserver/domoticz](https://github.com/linuxserver/docker-domoticz)
29-
30-
[![GitHub Stars](https://img.shields.io/github/stars/linuxserver/docker-domoticz.svg?style=flat-square&color=E68523&logo=github&logoColor=FFFFFF)](https://github.com/linuxserver/docker-domoticz)
31-
[![GitHub Release](https://img.shields.io/github/release/linuxserver/docker-domoticz.svg?style=flat-square&color=E68523&logo=github&logoColor=FFFFFF)](https://github.com/linuxserver/docker-domoticz/releases)
32-
[![GitHub Package Repository](https://img.shields.io/static/v1.svg?style=flat-square&color=E68523&label=linuxserver.io&message=GitHub%20Package&logo=github&logoColor=FFFFFF)](https://github.com/linuxserver/docker-domoticz/packages)
33-
[![GitLab Container Registry](https://img.shields.io/static/v1.svg?style=flat-square&color=E68523&label=linuxserver.io&message=GitLab%20Registry&logo=gitlab&logoColor=FFFFFF)](https://gitlab.com/Linuxserver.io/docker-domoticz/container_registry)
34-
[![Quay.io](https://img.shields.io/static/v1.svg?style=flat-square&color=E68523&label=linuxserver.io&message=Quay.io)](https://quay.io/repository/linuxserver.io/domoticz)
27+
[![GitHub Release](https://img.shields.io/github/release/linuxserver/docker-domoticz.svg?style=flat-square&color=E68523)](https://github.com/linuxserver/docker-domoticz/releases)
3528
[![MicroBadger Layers](https://img.shields.io/microbadger/layers/linuxserver/domoticz.svg?style=flat-square&color=E68523)](https://microbadger.com/images/linuxserver/domoticz "Get your own version badge on microbadger.com")
36-
[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/domoticz.svg?style=flat-square&color=E68523&label=pulls&logo=docker&logoColor=FFFFFF)](https://hub.docker.com/r/linuxserver/domoticz)
37-
[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/domoticz.svg?style=flat-square&color=E68523&label=stars&logo=docker&logoColor=FFFFFF)](https://hub.docker.com/r/linuxserver/domoticz)
29+
[![MicroBadger Size](https://img.shields.io/microbadger/image-size/linuxserver/domoticz.svg?style=flat-square&color=E68523)](https://microbadger.com/images/linuxserver/domoticz "Get your own version badge on microbadger.com")
30+
[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/domoticz.svg?style=flat-square&color=E68523)](https://hub.docker.com/r/linuxserver/domoticz)
31+
[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/domoticz.svg?style=flat-square&color=E68523)](https://hub.docker.com/r/linuxserver/domoticz)
3832
[![Build Status](https://ci.linuxserver.io/view/all/job/Docker-Pipeline-Builders/job/docker-domoticz/job/master/badge/icon?style=flat-square)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-domoticz/job/master/)
3933
[![](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/domoticz/latest/badge.svg)](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/domoticz/latest/index.html)
4034

@@ -232,6 +226,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
232226

233227
## Versions
234228

229+
* **03.11.19:** - 2nd try setting capabilities for Domoticz binary.
235230
* **29.10.19:** - Set capabilities for Domoticz binary so spawned processes can use sockets.
236231
* **28.06.19:** - Rebasing to alpine 3.10. Add iputils for ping. Fix typo in readme. Fix permissions for custom icons.
237232
* **30.03.19:** - Add env variable to set webroot.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ app_setup_block: |
7575
7676
# changelog
7777
changelogs:
78+
- { date: "03.11.19:", desc: "2nd try setting capabilities for Domoticz binary." }
7879
- { date: "29.10.19:", desc: "Set capabilities for Domoticz binary so spawned processes can use sockets." }
7980
- { date: "28.06.19:", desc: "Rebasing to alpine 3.10. Add iputils for ping. Fix typo in readme. Fix permissions for custom icons." }
8081
- { date: "30.03.19:", desc: "Add env variable to set webroot." }

root/etc/services.d/domoticz/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
IFS=" " read -r -a RUN_ARRAY <<< "$WEBROOT"
44

5+
# set capabilities for domoticz binary
6+
setcap cap_net_raw=+eip /var/lib/domoticz/domoticz
7+
58
exec \
69
s6-setuidgid abc /var/lib/domoticz/domoticz \
710
-sslwww 1443 \

0 commit comments

Comments
 (0)