Skip to content

Commit 6282be0

Browse files
committed
Moving things around.
1 parent 46c437c commit 6282be0

6 files changed

Lines changed: 20 additions & 5 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
config.json
2+
.DS_Store

Dockerfile renamed to base/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ RUN wget --no-check-certificate -O - https://deb.nodesource.com/setup_6.x | bash
1717
# install homebridge
1818
RUN npm install -g --unsafe-perm homebridge hap-nodejs node-gyp
1919

20-
# install homebridge plugins
21-
RUN npm install -g homebridge-nest --unsafe-perm
22-
RUN npm install -g https://github.com/rcreasey/homebridge-garage-sentry.git --unsafe-perm
23-
RUN npm install -g homebridge-platform-ring-video-doorbell
24-
2520
USER root
2621
VOLUME ["/root/.homebridge"]
2722
RUN mkdir -p /var/run/dbus
File renamed without changes.

‎modules/Dockerfile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM rcreasey/rpi-homebridge:base
2+
3+
RUN npm install -g https://github.com/rcreasey/homebridge-garage-sentry.git --unsafe-perm
4+
RUN npm install -g homebridge-nest --unsafe-perm
5+
# RUN npm install -g homebridge-platform-ring-video-doorbell

‎modules/homebridge.service‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[Unit]
2+
Description=Homebridge
3+
Requires=docker.service
4+
After=docker.service
5+
6+
[Service]
7+
Restart=always
8+
ExecStartPre=-/usr/bin/docker stop %n
9+
ExecStartPre=-/usr/bin/docker rm %n
10+
ExecStart=/usr/bin/docker run -p 0.0.0.0:51826:51826 -v /opt/homebridge:/root/.homebridge --name %n --net=host rcreasey/rpi-homebridge
11+
ExecStop=/usr/bin/docker stop -t 2 %n
12+
13+
[Install]
14+
WantedBy=default.target

0 commit comments

Comments
 (0)