Skip to content

Commit 7a7779c

Browse files
authored
Switch to Debian bullseye to run on amd64 and arm64 (Raspberry Pi) #11
2 parents b74e874 + 765e886 commit 7a7779c

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:focal
1+
FROM debian:bullseye
22

33
WORKDIR /opt/z-way-server
44

@@ -10,10 +10,12 @@ RUN mkdir -p /etc/zbw/flags && touch /etc/zbw/flags/no_connection
1010
RUN apt-get update && \
1111
apt-get install -qqy --no-install-recommends \
1212
ca-certificates curl \
13-
wget procps gpg iproute2 openssh-client openssh-server sudo logrotate
13+
wget procps gpg iproute2 openssh-client openssh-server sudo logrotate && \
14+
apt-get clean && rm -rf /var/lib/apt/lists/*
1415

1516
# Install z-way-server
16-
RUN wget -q -O - https://storage.z-wave.me/Z-Way-Install | bash
17+
RUN wget -q -O - https://storage.z-wave.me/Z-Way-Install | bash -e && \
18+
apt-get clean && rm -rf /var/lib/apt/lists/*
1719
RUN rm -f /opt/z-way-server/automation/storage/*
1820

1921
# Unblock zbw

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,24 @@ This Docker container will run the latest [Z-Way](https://z-wave.me/z-way/) - th
4141
```
4242

4343
This server works only with controllers from Z-Wave.Me, such as RaZberry 2/5/7/[Pro](https://z-wave.me/products/razberry/), [mPCIe module](https://z-wave.me/products/mpcie/), UZB, and [Z-Station](https://z-wave.me/products/z-station/).
44+
45+
## Running on Raspberry Pi
46+
47+
On Raspberry Pi, build the docker container:
48+
49+
```sh
50+
sudo apt-get install git
51+
git clone https://github.com/Z-Wave-Me/docker-z-way
52+
sudo docker build -t z-way-container .
53+
sudo mkdir /data
54+
```
55+
56+
Run the container:
57+
58+
```sh
59+
sudo docker run -p 8083 -v /data:/data --device /dev/ttyUSB0:/dev/ttyUSB0 -it z-way-container /opt/z-way-server/run.sh
60+
```
61+
62+
Change `/dev/ttyUSB0` to `/dev/ttyAMA0` in the line above and in `Apps > Active Apps > Z-Wave Network Access > Serial port` if you are using RaZberry 7 Pro or other board connected to Raspberry Pi UART pins.
63+
64+
All your files will be stored in the /data folder of your host.

0 commit comments

Comments
 (0)