We have moved at community.getvera.com

Author Topic: openLuup on Synology via Docker  (Read 3658 times)

Offline tsawyer

  • Sr. Newbie
  • *
  • Posts: 35
  • Karma: +2/-0
openLuup on Synology via Docker
« on: December 10, 2015, 09:37:31 am »
Hi all.   I would like to start a thread dedicated to running openLuup on Synology via Docker.   I have successfully downloaded  the airedale/openluup/  docker and have it running with AltUI, but am running into the issue of non-persistence after stop/start and limited success with adding additional plug-ins (starting with DataYours). 

My initial questions are:

1) Can anyone share the docker run command that they are using to start their openLuup container?  I am wondering if my persistence issue has to do with lack of a volume specification in my run parameters.

2) For loading plug-ins, I am dropping the files into the /etc/cmh-ludl directory and reloading luup, but I don't see the plug-ins in the AltUI list after that.   Surely I am missing something real simple here and have searched the forums first of course, but to no avail.

Thanks in advance for the help!


Offline tsawyer

  • Sr. Newbie
  • *
  • Posts: 35
  • Karma: +2/-0
Re: openLuup on Synology via Docker
« Reply #1 on: December 10, 2015, 09:41:06 am »
And for reference - I am currently using the below to create my container ...

docker run -d --name="openluup" --restart="always" -e veraips="192.168.1.3" -v /volume1/docker/openLuup/files:/files:rw airedale/openluup


I also tried the below to try and see if it would help with persistence, but with limited success ....

docker run -d --name="openluup" --restart="always" -e veraips="192.168.1.3" -v /volume1/docker/openLuup/files:/files:rw -v /volume1/docker/openLuup/cmh-ludl:/etc/cmh-ludl:rw airedale/openluup

Offline akbooer

  • Moderator
  • Master Member
  • *****
  • Posts: 6387
  • Karma: +292/-70
  • "Less is more"
Re: openLuup on Synology via Docker
« Reply #2 on: December 10, 2015, 09:44:11 am »
I would like to start a thread dedicated to running openLuup on Synology via Docker.
Sounds like a good plan - there seems to be some interest.  Sadly, I have NO expertise in this area, so it's definitely self-help!

Quote
For loading plug-ins, I am dropping the files into the /etc/cmh-ludl directory and reloading luup, but I don't see the plug-ins in the AltUI list after that.   Surely I am missing something real simple here and have searched the forums first of course, but to no avail.

I have not implemented the data structures which allow AltUI to fully describe the installed plugins.  My experience (outside of Docker) is as per the attached screenshot.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline CudaNet

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1401
  • Karma: +42/-11
  • Chimichanga !
Re: openLuup on Synology via Docker
« Reply #3 on: December 10, 2015, 02:40:33 pm »
If I recall correctly, jcsv75 successfully installed openLuup on a Synology NAS. Although, I don't have the specifics ...
openLuup, AltUI, Zway and HomeWave, enough said...

Offline jcsv75

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +3/-0
Re: openLuup on Synology via Docker
« Reply #4 on: December 13, 2015, 03:53:45 pm »
If I recall correctly, jcsv75 successfully installed openLuup on a Synology NAS. Although, I don't have the specifics ...

Yep, that's true. I managed to get OpenLuup running in the docker image provided by Airedale. However, as you found out already the data is not persistent across reboots. I have been doing some reading on this topic and I am sure it must be possible to achieve data persistency according to this info: https://docs.docker.com/engine/userguide/dockervolumes/. Unfortunately my technical skills and time are the limiting factors here.

However I had succes with a slightly differerent approach. I installed phpvirtualbox on my synology NAS, (actually a Xpenology box built on the HP N54L server). Then, with the precious help of cudanet, I got Openluup installed on a virtual machine running Ubuntu. It's been running smoothly for about a month now and I can take the image and run it on any machine with Virtualbox installed.

Offline tsawyer

  • Sr. Newbie
  • *
  • Posts: 35
  • Karma: +2/-0
Re: openLuup on Synology via Docker
« Reply #5 on: December 14, 2015, 08:21:19 am »
I thought about running it directly on the Synology with either Debian Chroot or something similar, but I like the idea of the Docker option for the containment and portability of it.  This has started me down a new route where I am attempting to build my own docker container based on a a standard Debian docker image, then customizing it and putting everything into a new Docker build file to share with everyone.   I hope to share some good progress in the next week or so!

Offline jcsv75

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +3/-0
Re: openLuup on Synology via Docker
« Reply #6 on: December 14, 2015, 04:40:35 pm »
Ok sounds great. Happy to help testing if needed. I guess the key to making the image persistent is to figure out how to assign a writable volume to the docker image .


Sent from my iPad using Tapatalk

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: openLuup on Synology via Docker
« Reply #7 on: December 18, 2016, 05:41:27 pm »
anyone successfully running openLUUP in Syno Docker?  Looks like there have been a ton of improvements in Syno Docker in the past year - data should persist across reboots fr as I know.

Offline lazyone

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
Re: openLuup on Synology via Docker
« Reply #8 on: December 20, 2016, 06:42:53 pm »
I would like to see a Docker version of OpenLuup as well, but I would like to run it on UnRaid

Offline jcsv75

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +3/-0
Re: openLuup on Synology via Docker
« Reply #9 on: January 07, 2017, 04:03:51 am »
Whilst I don't have a solution to run OpenLuup on Docker, I do have a solution to run OpenLuup very easily on a Synology NAS. The only thing that is needed is a reasonably powerfull NAS and the installation of PHPVirtualbox which can be found here: https://sourceforge.net/projects/phpvirtualbox/. You can then import the ready made virtualbox image from Cudanet and update from there.

I have this running since over a year on a selfbuild Xpenology Nas with 16 GM RAM.

cheers,

Jacques



Offline Sender

  • Hero Member
  • *****
  • Posts: 973
  • Karma: +552/-467
  • Sr. manager of my Vera
Re: openLuup on Synology via Docker
« Reply #10 on: January 11, 2017, 02:42:39 am »
I have it running on a docker container. When I go to http://dockerip:80 I get "forbidden" should a website be displayed? Or should I do anything els before Altui is displayed?  :-[

403 Forbidden
nginx/1.6.2

Edit... following the manual I get:
http://<YourIP>:3480/data_request?id=altui
(this takes about one minute and requires, of course, an internet connection.) If you want
to watch it working you can tail the log with tail -f LuaUPnP.log
This should load a functional ALTUI interface which should run when you access the URL
http://<YourIP>:3480/data_request?id=lr_ALTUI_Handler&command=home#
You will immediately be prompted to upgrade to the latest version (you don?t have to ?
again, it takes about a minute and will restart openLuup.) You should be able to exercise
all the ALTUI functionality through menus, etc., and simply see a single device (ALTUI) in
the system.

But I only see:
AltUI, amg0, Waiting Initial Data

and that never changes...
« Last Edit: January 11, 2017, 03:08:12 am by Sender »
Good firmware is more important than good karma. (and this costed me lots of Karma)