-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Zigbee2mqtt in Docker on Nano Server image #1479
Comments
That would indeed be nice, could you make a |
I will give it a try.
Is it a problem I copy nodejs and git folder to the nanoserver instead
downloadingen the files and unzipping it in the buildfile? Because
nanoserver cannot unzip files without powershell.
Powershell nanoserver is 500 mb
Without powershell 100 mb
|
Yes, just make it as small as possible. |
Just made a quick and dirty dockerfile for testing purposes. For now i did use the powershell version, can change that later. The dockerfile;
The run command; The log
(log is longer) if i occupy the com port by zigbee2mqtt on the host, i get the regular error message;
How can i debug the memory error? |
Did you try wechaty/wechaty#1435 (comment) ? |
Yup, but dont think the default nodejs 1500 mb memory limit is the problem.
|
Got it working by using mcr.microsoft.com/windows/servercore:1809 |
Should i create a issue at https://github.com/zigbeer/zigbee-shepherd/ since they load a something that is missing in nanoserver? |
What exactly is it loading? zigbee-shepherd isn't maintained anymore so I forked it: https://github.com/koenkk/zigbee-shepherd |
Only thing i know for sure that the full server version aka servercore, zigbee-shepherd works just fine. With nanoserver it goes in some sort of memory loop. So shepherd is trying to use a library not available in nanoserver. Question is, what library. |
Cannot get it to work on a nanoserver image. Servercore does work, but image is huge. The dockerfile:
No copying of the config file, so when mounting c:\app\data, please add a config file yourself. |
@desertspider thanks for your investigation! |
Would it be possible to make zigbee2mqtt docker run inside a Windows container base image so the command "docker inspect --format '{{.Os}}' koenkk/zigbee2mqtt" would show "windows".
In other words, zigbee2mqtt based on windows nanoserver 1809
This because in the next docker release, it is possible to mount the zigbee stick inside docker on a Windows host.
https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/hardware-devices-in-containers
The text was updated successfully, but these errors were encountered: