Skip to content

Commit

Permalink
feat: added homebridge ui
Browse files Browse the repository at this point in the history
lafin committed Jan 7, 2024
1 parent d0d3318 commit 1fc71f6
Showing 5 changed files with 17 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -16,16 +16,16 @@ jobs:
matrix:
app: [nodered, homebridge, mosquitto]
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: $GITHUB_ACTOR
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: ${{ matrix.app }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
8 changes: 4 additions & 4 deletions homebridge/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM alpine
FROM alpine:3.18

RUN apk add --no-cache --virtual .build-deps make gcc g++ python3 \
&& apk add --no-cache nodejs npm openssl avahi-compat-libdns_sd avahi-dev dbus
RUN npm i -g homebridge homebridge-mqtt \
RUN npm i -g homebridge homebridge-mqtt homebridge-config-ui-x \
&& apk del .build-deps
RUN apk add --no-cache dumb-init tzdata

@@ -15,6 +15,6 @@ COPY entrypoint.sh .

VOLUME ./.homebridge

EXPOSE 5353 51826
EXPOSE 5353 8581 51826
ENTRYPOINT ["/root/entrypoint.sh"]
CMD ["dumb-init", "homebridge", "-U", "/root/.homebridge"]
CMD ["dumb-init", "hb-service", "run", "--allow-root", "-U", "/root/.homebridge"]
6 changes: 6 additions & 0 deletions homebridge/config/config.json
Original file line number Diff line number Diff line change
@@ -8,6 +8,12 @@
"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
"accessories": [],
"platforms": [
{
"platform": "config",
"name": "Config",
"port": 8581,
"sudo": false
},
{
"platform": "mqtt",
"name": "mqtt",
2 changes: 1 addition & 1 deletion mosquitto/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine
FROM alpine:3.18

RUN apk add --no-cache mosquitto mosquitto-clients tzdata

2 changes: 1 addition & 1 deletion nodered/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine
FROM alpine:3.18

RUN apk add --no-cache --virtual .build-deps make gcc g++ python3 krb5-dev zeromq-dev \
&& apk add --no-cache nodejs npm openssl

0 comments on commit 1fc71f6

Please sign in to comment.