mkunzmann / docker-fhem Goto Github PK
View Code? Open in Web Editor NEWDocker container to run fhem
License: MIT License
Docker container to run fhem
License: MIT License
When I install the container with an external volume fhem doesn't start properly because the shared folder is empty.
Do you have a solution for this issue?
Hi,
I just used your image to migrate my fhem container from a raspberry pi (https://github.com/sejnub/docker-fhem) to my x86 system.
I copied the configuration, but it did not work out of the box.
I got Cannot load module MQTT
.
I exec'd into the container and executed the following commands from the wiki.
sudo cpan install Net::MQTT:Simple
sudo cpan install Net::MQTT:Constants
After a restart of the container it works instantly.
Output of the modul installation:
root@fhem:/# perl -v
This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-gnu-thread-multi
(with 75 registered patches, see perl -V for more detail)
Copyright 1987-2017, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
root@fhem:/# cpan install Net::MQTT:Simple
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 01 Mar 2018 00:54:44 GMT
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Mon, 25 Jun 2018 21:17:02 GMT
.............
New CPAN.pm version (v2.16) available.
[Currently running version is v2.1101]
You might want to try
install CPAN
reload cpan
to both upgrade CPAN.pm and run the new version without leaving
the current session.
...............................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/root/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /root/.cpan/Metadata
Net::MQTT::Simple is up to date (1.21).
root@fhem:/# cpan install Net::MQTT:Constants
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
Database was generated on Mon, 25 Jun 2018 21:17:02 GMT
Running install for module 'Net::MQTT::Constants'
Fetching with LWP:
http://www.cpan.org/authors/id/B/BE/BEANZ/Net-MQTT-1.163170.tar.gz
Fetching with LWP:
http://www.cpan.org/authors/id/B/BE/BEANZ/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/B/BE/BEANZ/Net-MQTT-1.163170.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring B/BE/BEANZ/Net-MQTT-1.163170.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Module::Pluggable 0 not found.
Generating a Unix-style Makefile
Writing Makefile for Net::MQTT
Writing MYMETA.yml and MYMETA.json
BEANZ/Net-MQTT-1.163170.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for B/BE/BEANZ/Net-MQTT-1.163170.tar.gz
---- Unsatisfied dependencies detected during ----
---- BEANZ/Net-MQTT-1.163170.tar.gz ----
Module::Pluggable [requires]
Running install for module 'Module::Pluggable'
Fetching with LWP:
http://www.cpan.org/authors/id/S/SI/SIMONW/Module-Pluggable-5.2.tar.gz
Fetching with LWP:
http://www.cpan.org/authors/id/S/SI/SIMONW/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/S/SI/SIMONW/Module-Pluggable-5.2.tar.gz ok
Configuring S/SI/SIMONW/Module-Pluggable-5.2.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Module::Pluggable
Writing MYMETA.yml and MYMETA.json
SIMONW/Module-Pluggable-5.2.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for S/SI/SIMONW/Module-Pluggable-5.2.tar.gz
cp lib/Module/Pluggable/Object.pm blib/lib/Module/Pluggable/Object.pm
cp lib/Devel/InnerPackage.pm blib/lib/Devel/InnerPackage.pm
cp lib/Module/Pluggable.pm blib/lib/Module/Pluggable.pm
Manifying 3 pod documents
SIMONW/Module-Pluggable-5.2.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01use.t .................... ok
t/02alsoworks.t .............. ok
t/02works.t .................. ok
t/02works_taint.t ............ ok
t/03diffname.t ............... ok
t/04acmedir.t ................ ok
t/04acmedir_single.t ......... ok
t/04acmepath.t ............... ok
t/04acmepath_single.t ........ ok
t/05postpath.t ............... ok
t/06multipath.t .............. ok
t/07instantiate.t ............ ok
t/08nothing.t ................ ok
t/09require.t ................ ok
t/10innerpack.t .............. ok
t/10innerpack_inner.t ........ ok
t/10innerpack_noinner.t ...... ok
t/10innerpack_onefile.t ...... ok
t/10innerpack_override.t ..... ok
t/10innerpack_super.t ........ ok
t/11usetwice.t ............... ok
t/12only.t ................... ok
t/12onlyarray.t .............. ok
t/12onlyregex.t .............. ok
t/12onlyrequire.t ............ ok
t/13except.t ................. ok
t/13exceptarray.t ............ ok
t/13exceptregex.t ............ ok
t/14package.t ................ ok
t/15topicsafe.t .............. ok
t/16different_extension.t .... ok
t/17devel_inner_package.t .... ok
t/18skipped_package.t ........ ok
t/19can_ok_clobber.t ......... ok
t/20dodgy_files.t ............ ok
t/21editor_junk.t ............ ok
t/22trigger.t ................ ok
t/23depth.t .................. ok
t/24local_inc_object.t ....... ok
t/24local_inc_package.t ...... ok
t/25single_letter_package.t .. ok
t/26inc_hook.t ............... ok
t/27app_fatpacker.t .......... skipped: App::FatPacker >= 0.10.0 not available
All tests successful.
Files=43, Tests=180, 1 wallclock secs ( 0.10 usr 0.01 sys + 1.00 cusr 0.04 csys = 1.15 CPU)
Result: PASS
SIMONW/Module-Pluggable-5.2.tar.gz
/usr/bin/make test -- OK
Running make install
Manifying 3 pod documents
Installing /usr/local/share/perl/5.24.1/Devel/InnerPackage.pm
Installing /usr/local/share/perl/5.24.1/Module/Pluggable.pm
Installing /usr/local/share/perl/5.24.1/Module/Pluggable/Object.pm
Installing /usr/local/man/man3/Devel::InnerPackage.3pm
Installing /usr/local/man/man3/Module::Pluggable.3pm
Installing /usr/local/man/man3/Module::Pluggable::Object.3pm
Appending installation info to /usr/local/lib/x86_64-linux-gnu/perl/5.24.1/perllocal.pod
SIMONW/Module-Pluggable-5.2.tar.gz
/usr/bin/make install -- OK
BEANZ/Net-MQTT-1.163170.tar.gz
Has already been unwrapped into directory /root/.cpan/build/Net-MQTT-1.163170-sJzWiw
BEANZ/Net-MQTT-1.163170.tar.gz
Has already been prepared
Running make for B/BE/BEANZ/Net-MQTT-1.163170.tar.gz
cp lib/Net/MQTT/Message/Disconnect.pm blib/lib/Net/MQTT/Message/Disconnect.pm
cp lib/Net/MQTT/Message/PingResp.pm blib/lib/Net/MQTT/Message/PingResp.pm
cp lib/Net/MQTT/Message/SubAck.pm blib/lib/Net/MQTT/Message/SubAck.pm
cp lib/Net/MQTT/Message/Unsubscribe.pm blib/lib/Net/MQTT/Message/Unsubscribe.pm
cp lib/Net/MQTT/Message/PubRec.pm blib/lib/Net/MQTT/Message/PubRec.pm
cp lib/Net/MQTT/Constants.pm blib/lib/Net/MQTT/Constants.pm
cp lib/Net/MQTT/Message/ConnAck.pm blib/lib/Net/MQTT/Message/ConnAck.pm
cp lib/Net/MQTT/TopicStore.pm blib/lib/Net/MQTT/TopicStore.pm
cp lib/Net/MQTT/Message/Connect.pm blib/lib/Net/MQTT/Message/Connect.pm
cp lib/Net/MQTT/Message/JustMessageId.pm blib/lib/Net/MQTT/Message/JustMessageId.pm
cp lib/Net/MQTT/Message/UnsubAck.pm blib/lib/Net/MQTT/Message/UnsubAck.pm
cp lib/Net/MQTT.pod blib/lib/Net/MQTT.pod
cp lib/Net/MQTT/Message/PingReq.pm blib/lib/Net/MQTT/Message/PingReq.pm
cp lib/Net/MQTT/Message/Subscribe.pm blib/lib/Net/MQTT/Message/Subscribe.pm
cp lib/Net/MQTT/Message/PubAck.pm blib/lib/Net/MQTT/Message/PubAck.pm
cp lib/Net/MQTT/Message/Publish.pm blib/lib/Net/MQTT/Message/Publish.pm
cp lib/Net/MQTT/Message/PubRel.pm blib/lib/Net/MQTT/Message/PubRel.pm
cp lib/Net/MQTT/Message/PubComp.pm blib/lib/Net/MQTT/Message/PubComp.pm
cp lib/Net/MQTT/Message.pm blib/lib/Net/MQTT/Message.pm
cp bin/net-mqtt-pub blib/script/net-mqtt-pub
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/net-mqtt-pub
cp bin/net-mqtt-trace blib/script/net-mqtt-trace
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/net-mqtt-trace
cp bin/net-mqtt-sub blib/script/net-mqtt-sub
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/net-mqtt-sub
Manifying 3 pod documents
Manifying 19 pod documents
BEANZ/Net-MQTT-1.163170.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-report-prereqs.t ........ #
# Versions for all modules listed in MYMETA.json (including optional ones):
#
# === Configure Requires ===
#
# Module Want Have
# ------------------- ---- -------
# ExtUtils::MakeMaker any 7.10_02
#
# === Build Requires ===
#
# Module Want Have
# ------------------- ---- -------
# ExtUtils::MakeMaker any 7.10_02
#
# === Test Requires ===
#
# Module Want Have
# ------------------- ---- --------
# ExtUtils::MakeMaker any 7.10_02
# File::Spec any 3.63_01
# Test::More any 1.001014
#
# === Test Recommends ===
#
# Module Want Have
# ---------- -------- --------
# CPAN::Meta 2.120900 2.150005
#
# === Runtime Requires ===
#
# Module Want Have
# ----------------- ---- ------
# Carp any 1.40
# Getopt::Long any 2.48
# IO::Select any 1.22
# IO::Socket::INET any 1.35
# Module::Pluggable any 5.2
# Pod::Usage any 1.68
# Time::HiRes any 1.9733
# base any 2.23
# strict any 1.11
# warnings any 1.36
#
# === Runtime Suggests ===
#
# Module Want Have
# --------- ---- -------
# Net::Pcap any missing
#
t/00-report-prereqs.t ........ ok
t/01-message.t ............... ok
t/01-topic.t ................. ok
t/02-messages.t .............. ok
t/03-errors.t ................ ok
t/author-critic.t ............ skipped: these tests are for testing by the author
t/author-eol.t ............... skipped: these tests are for testing by the author
t/author-no-tabs.t ........... skipped: these tests are for testing by the author
t/author-pod-coverage.t ...... skipped: these tests are for testing by the author
t/author-pod-no404s.t ........ skipped: these tests are for testing by the author
t/author-pod-syntax.t ........ skipped: these tests are for testing by the author
t/release-common_spelling.t .. skipped: these tests are for release candidate testing
t/release-kwalitee.t ......... skipped: these tests are for release candidate testing
t/release-pod-linkcheck.t .... skipped: these tests are for release candidate testing
All tests successful.
Files=14, Tests=157, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.18 cusr 0.00 csys = 0.23 CPU)
Result: PASS
BEANZ/Net-MQTT-1.163170.tar.gz
/usr/bin/make test -- OK
Running make install
Manifying 3 pod documents
Manifying 19 pod documents
Installing /usr/local/share/perl/5.24.1/Net/MQTT.pod
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/TopicStore.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Constants.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/JustMessageId.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/Publish.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/Unsubscribe.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/PubAck.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/SubAck.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/Connect.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/PingReq.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/PubRel.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/Disconnect.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/PingResp.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/ConnAck.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/UnsubAck.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/PubComp.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/Subscribe.pm
Installing /usr/local/share/perl/5.24.1/Net/MQTT/Message/PubRec.pm
Installing /usr/local/man/man1/net-mqtt-trace.1p
Installing /usr/local/man/man1/net-mqtt-pub.1p
Installing /usr/local/man/man1/net-mqtt-sub.1p
Installing /usr/local/man/man3/Net::MQTT::Message::Disconnect.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::Subscribe.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::PubRec.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::Unsubscribe.3pm
Installing /usr/local/man/man3/Net::MQTT::Constants.3pm
Installing /usr/local/man/man3/Net::MQTT::Message.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::PubComp.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::UnsubAck.3pm
Installing /usr/local/man/man3/Net::MQTT.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::PingReq.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::PingResp.3pm
Installing /usr/local/man/man3/Net::MQTT::TopicStore.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::ConnAck.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::JustMessageId.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::PubAck.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::Publish.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::PubRel.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::SubAck.3pm
Installing /usr/local/man/man3/Net::MQTT::Message::Connect.3pm
Installing /usr/local/bin/net-mqtt-pub
Installing /usr/local/bin/net-mqtt-sub
Installing /usr/local/bin/net-mqtt-trace
Appending installation info to /usr/local/lib/x86_64-linux-gnu/perl/5.24.1/perllocal.pod
BEANZ/Net-MQTT-1.163170.tar.gz
/usr/bin/make install -- OK
So I guess Net::MQTT:Constants
needs to be added to the image.
Is this possible or do I have to fork your repo? ๐
Not sure if this is worth investing.
But there is one error I get after starting my little fhem container.
PERL WARNING: Can't exec "lsusb": No such file or directory at ./FHEM/98_autocreate.pm line 537.
I don't know if this has any impact.
Just wanted to let you know.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.