Adapt UID/GID from Dockerhub container (MediathekView)


Recommended Posts

Hi,

 

I've found a container on Dockerhub which I would like to use on unRAID (an X11rdp-ready version of MediathekView, a JAVA application from Germany which allows downloading videos from various VOD services of German-language public service broadcasters). It was no problem to install it from DockerHub and adapt ports and mounts to work with my unRAID set-up and the basic functionality the application provides on any given desktop is there.

 

The only problem is, the docker-compose.yml defines UID and UID as 1000 instead of the 99/100 combo containers built with unRAID in mind use. Files created that way, have their rights off, which probably will lead to problems down the line, once files are being transferred to their permanent homes on my folder structure.. Trying to change PUID/PGID accordingly via the 'parameters' field in the Advanced View of the container leads to an error message of a service within the container not being able to start.

 

Is there an easy way to adapt the UID/GID withing unRAID, or would I have to fork the code and try to make the container itself work with 99/100 first and then add this forked version to unRAID?

 

For those who want to take a look (or any German-speaking users who want to run MediathekView on their setup), the Dockerhub container is here and the according GitHub repository is here. (I also tried the more popular version by tuxflo on Dockerhub, which uses the proper UID/GID but has a number of display issues over X11rdp and still uses an outdated version of the application; the version I tried actually forked that one and improved it).

Link to comment
  • 1 month later...

oh nice! thank you for the links. MV has been one of my favorite applications during the past decades (I can't really remember when I started using it) be it as a windows program (that has to be a couple of years back since I last uses windows;) or as a webapp and recently I started using the docker version on my root server (not the unraid home build). Will definitly try it out on unraid soon.

 

I just found out last week that the webapp version of MV even has a (not so well documented) API. That got me all excited (thinking about automatically pulling my sons favorite show "Sendung mit der Maus" every Sunday) but I couldn't quite get it working the way I intended.

 

Link to comment

PUID & PGID are something that has to be implemented in the Docker container at build time, there's no easy answer unless you want to make your own container.

 

Probably the easiest solution is to download everything to a single folder. (presumedly to the output folder) and chown it.

 

So assume you've mapped /output to /mnt/cache/downloads/mediathekview

 

chown -R 99:100 /mnt/cache/downloads/mediathekview

or

chown -R nobody:users /mnt/cache/downloads/mediathekview

Both are equivalent as nobody = 99 and users = 100

 

Edited by CHBMB
Link to comment
  • 10 months later...

Yes, it's actually running flawlessly since the latest version of the Docker container. I've been in contact with the developer who provided it and with some of his effort, my debugging notes and the latest MediathekView update, it started working.

 

I've been meaning to provide an iteration for Unraid, but been too busy to look into it.

 

Here's how to get it working:

 

Add container from https://hub.docker.com/r/conrad784/mediathekview-webinterface/

 

Choose a port, config and download location.

 

Add a variable USER_ID = 99, GROUP_ID=100 and UMASK= 0000

 

That's it. The VNC Web GUI doesn't work too well on mobile (searching with a soft keyboard is a pain) but works perfectly on Desktop.

 

If you are in Austria/use an Austrian VPN and want content from ORF, note the config changes required in the MediathekView forum to the ffmpeg/VLC parameters.

  • Like 2
  • Thanks 2
Link to comment
  • 3 weeks later...
On 4/22/2020 at 5:49 AM, Darkguy said:

Yes, it's actually running flawlessly since the latest version of the Docker container. I've been in contact with the developer who provided it and with some of his effort, my debugging notes and the latest MediathekView update, it started working.

 

I've been meaning to provide an iteration for Unraid, but been too busy to look into it.

 

Here's how to get it working:

 

Add container from https://hub.docker.com/r/conrad784/mediathekview-webinterface/

 

Choose a port, config and download location.

 

Add a variable USER_ID = 99, GROUP_ID=100 and UMASK= 0000

 

That's it. The VNC Web GUI doesn't work too well on mobile (searching with a soft keyboard is a pain) but works perfectly on Desktop.

 

If you are in Austria/use an Austrian VPN and want content from ORF, note the config changes required in the MediathekView forum to the ffmpeg/VLC parameters.

 

Hi Darkguy,

 

I followed your instructions and installed the Mediathekview Container.

 

Now I do have a maybe newbie question. How do I connect into the running container?

 

THX

Link to comment
On 5/8/2020 at 1:01 PM, dondanielle said:

 

Hi Darkguy,

 

I followed your instructions and installed the Mediathekview Container.

 

Now I do have a maybe newbie question. How do I connect into the running container?

 

THX

Yes, im also very interested in. Im pretty new and dumb to what belongs docker, so a small how-to and setting up with the new variables would also be a nice thing!

 

Stay healthy!

Link to comment

The container should have a web port added (default: 5800), so you should be able to get into the GUI (via VNC) in your browser at http://[SERVER IP]:[WEB PORT] (e.g.: http://192.168.0.1:5800).

 

If you switch to advanced view in the container configuration, you can also add the URL to the Web UI in the form of http://[IP]:[PORT:5800]/ to get into the UI via the context menu of the list of Docker containers in Unraid.

 

If you want to add the WebUI to a Reverse Proxy (to make it available through a public IP) such as the letsencrypt Docker, you can add this to your configuration:

 

location ^~ /mediathekview/ {
   proxy_pass http://<server>:<port>/;
   proxy_http_version 1.1;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection $connection_upgrade;
   proxy_read_timeout 86400;
}
 

Link to comment
  • 8 months later...
On 6/14/2019 at 2:09 AM, CHBMB said:

PUID & PGID are something that has to be implemented in the Docker container at build time, there's no easy answer unless you want to make your own container.

and @Squid

 

Do you know if there are any plans to change this in a future release of Unraid OS? Like an extra field in the "Add Container" form which allows adding "usermod" commands to the downloaded dockerfile, before it becomes executed? This would make thinks easier and feature requests like this. Sadly some containers do not start with the "--user" flag (as they probably need root).

Link to comment
  • 2 months later...

Hi!

Just followed your steps. I could get the WebUI to run.... I see „server disconnected 1006“

BUT: I think I need to run the Mserver as the UI does not connect to the server?!?! 

Please share with me what server and how this needs to be run -  

 

 

Thanks

MIchael

Edited by Martmiwp
Link to comment
On 4/22/2020 at 5:49 AM, Darkguy said:

Here's how to get it working:

 

Add container from https://hub.docker.com/r/conrad784/mediathekview-webinterface/

 

Choose a port, config and download location.

 

Add a variable USER_ID = 99, GROUP_ID=100 and UMASK= 0000

 

That's it. The VNC Web GUI doesn't work too well on mobile (searching with a soft keyboard is a pain) but works perfectly on Desktop.

Under Unraid 6.9.1 it works like a charm. No problems at all. 👍

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.