[support] Bungy's docker repository


Recommended Posts

I am very new to creating templates and dockers, but I am learning quickly. I've created a repository with my current work.

 

Repository link:

https://github.com/jshridha/templates

 

Templates:

  • Gitlab
    • Gitlab is a git code repository server. It can be hosted on your own private server so that you can collaborate with others and improve your projects and maintaining the flow of data.
    • Please read sameersbn's documentation for more information (https://github.com/sameersbn/docker-gitlab/blob/master/README.md). He is the docker maintainer and I am providing a template to make the Docker easily added into unraid.
    • Usage:
      • You need a redis and postgresql server running. You also need to fill out the environmental variables to point to these servers. I recommend creating a redis and postgresql docker provided by sameersbn using my templates.

      • Currently the docker links to the redis and postgresql servers to exchange connection information. This currently causes an issue with the unraid docker webgui. The webgui no longer displays the popup with controls after clicking on the docker icon.

       

    [*]Redis

    [*]Postgresql

    [*]Nzbgetvpn

    • This is a mashup of binhex's nzbget and delugevpn containers in order to use nzbget through an openvpn tunnel.

 

I will be editing this post with additional descriptions and more detailed usage information. Feel free to ask for support in this thread.

  • Upvote 1
Link to comment
  • 3 weeks later...
  • 2 weeks later...

Bungy thank you! I am going to try out your NZBGet. Can you update in the container?

 

To be honest, I'm not completely sure. I based this docker primarily on binhex's work with delugevpn and nzbget. I would assume it can be updated to the newest version of nzbget. Currently it is on 14.2, which is the newest version. I'll plan to release I newer docker image with the newer version when one comes out, so you can stay updated through the webgui or use the newest container image.

Link to comment
  • 3 weeks later...

I'm having some trouble with the openHAB docker from your repo. I can get it to install and it starts, and I even managed to get habmin installed, but it seems like none of the bindings are being downloaded/loaded. Even the demo sitemap displays no information (e.g. temperature being displayed as "-"). For what it's worth I'm running v6beta14b

Link to comment

I'm having some trouble with the openHAB docker from your repo. I can get it to install and it starts, and I even managed to get habmin installed, but it seems like none of the bindings are being downloaded/loaded. Even the demo sitemap displays no information (e.g. temperature being displayed as "-"). For what it's worth I'm running v6beta14b

 

Did you set up the binding configuration in the openhab.cfg file? For weather, this includes getting an api key from weather underground and setting your latitude/longitude. After I did that, I was able to get the weather in the demo to display correctly.

 

In order to check which bindings are installed you can do this:

 

docker exec -it openhab bash
ls -l /opt/openhab/addons

 

That will list all the bindings installed. You can also go to /opt/openhab/logs and look inside openhab.log to find some debugging information.

Link to comment

It looks like the problem is your addons.cfg file if nothing shows up in that directory.

 

Try adding this to addons.cfg:

 

org.openhab.action.mail
org.openhab.action.squeezebox
org.openhab.action.xmpp
org.openhab.binding.exec
org.openhab.binding.http
org.openhab.binding.knx
org.openhab.binding.mqtt
org.openhab.binding.networkhealth
org.openhab.binding.serial
org.openhab.binding.squeezebox
org.openhab.io.squeezeserver
org.openhab.persistence.cosm
org.openhab.persistence.db4o
org.openhab.persistence.gcal
org.openhab.persistence.rrd4j
org.openhab.binding.ntp
org.openhab.binding.weather

Link to comment

Hmm. It seems that the script that's supposed to read your addons.cfg file is not working correctly.

 

Can you check to see that your settings match the screenshot. Ignore the directory mapping and the docker link to mochad.

 

Your addons.cfg file should go into /mnt/cache/appdata/openhab/config. Mine currently has permissions 666, but any permissions should work fine since the docker has root access.

 

SOqhouZ.png

Link to comment

Remapped everything to a fresh directory (openhab2), stopped docker, dropped in addons.cfg. This is what I get in the log:

 

/usr/bin/docker logs --tail=350 -f openhab 2>&1

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

...

not found.

--------------------------------------------------------

NO openhab.cfg CONFIGURATION FOUND

 

= using demo files =

 

Consider running the Docker with a openhab configuration

 

--------------------------------------------------------

ln: failed to create symbolic link '/etc/openhab/openhab.cfg': File exists

2015-05-12 11:09:59,443 CRIT Supervisor running as root (no user in config file)

2015-05-12 11:09:59,443 WARN Included extra file "/etc/supervisor/conf.d/openhab.conf" during parsing

2015-05-12 11:09:59,465 INFO RPC interface 'supervisor' initialized

2015-05-12 11:09:59,465 CRIT Server 'inet_http_server' running without any HTTP authentication checking

2015-05-12 11:09:59,466 INFO RPC interface 'supervisor' initialized

2015-05-12 11:09:59,466 CRIT Server 'unix_http_server' running without any HTTP authentication checking

2015-05-12 11:09:59,466 INFO supervisord started with pid 1

2015-05-12 11:10:00,469 INFO spawned: 'openhab' with pid 13

2015-05-12 11:10:01,471 INFO success: openhab entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

 

Aside from my docker residing at /mnt/cache/apps/dockerapps/openhab2 the mapping is the same as yours

Link to comment

All those "not founds" are it not being able to find the addons_available directory. Which version of my docker container are you using? The latest one?

 

I just tried with a fresh directory in which all i did was create the config directory and put the addons.cfg file in there and it worked without problems.

 

Try a chmod -Rv 777 on your openhab directory and then try this docker run command:

 

docker run -d --name=openhab --net=bridge -p 8080:8080 \
  -v /mnt/cache/appdata/openhab2/config:/etc/openhab \
  -v /etc/localtime:/etc/localtime:ro \
  jshridha/openhab:latest

 

If you're linking the addons-available directory to a directory on your unraid server, then you may be causing problems since that directory isn't supposed to be exposed to the host.

 

If I run the docker without linking any directories, I still get 5 of the bindings to show up, so my guess is you're having some issue with the directory mapping. Can you post a screenshot of your settings?

Link to comment

I was finally able to reproduce your problem. I'm guessing you created the addons.cfg file in windows. Windows uses \r\n as the end of line identifier and unix uses \n. Convert your addons.cfg to unix style eol. You can do this in windows through the command line with (http://sourceforge.net/projects/dos2unix/) or if you're using notepad++ go to Edit->EOL Conversion->UNIX/OSX Format. That should fix your problems!

Link to comment

I had actually created the addons.cfg on my android phone, but I guess it saved in windows style EOL. Adjusting it did indeed get openhab running! Thank you so very much for your effort. I don't know if I'd ever have gotten around to checking that myself.

 

The only issue I'm having now is HABmin just shows openHAB as offline.

Link to comment

Interesting, I wouldn't have guessed that android defaulted to windows syte EOL.

 

I was having some trouble with habmin before too. I can't remember what I did to fix it, but I was having a similar issue. I turned out the binding wasn't actually activating. Have you checked to see that the binding shows up in the addons directory?

Link to comment

I am going to start to play with the nzbgetvpn.  Is there a way to tell if it is actually connecting to PIA and using the service?

 

John

Yeah, the easy way is to open a bash terminal into the docker and then check the ifconfig settings. If you see a connection to tun0, then you know you're connected to the VPN.

 

Another way is to run this command from within the docker and check to see if the ip address is the same or different as your ISP provided IP address.

 

curl ipecho.net/plain ; echo

  • Upvote 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.