Jump to content
Darkguy

Adapt UID/GID from Dockerhub container (MediathekView)

8 posts in this topic Last Reply

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).

Share this post


Link to post

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.

 

Share this post


Link to post

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

Share this post


Link to post

Has anybody had any success to run this container? Pretty interested in using this! Im pretty new to Docker and woud learn how to make it run.

 

Thanks :-)

Share this post


Link to post

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 1
  • Thanks 1

Share this post


Link to post
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

Share this post


Link to post
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!

Share this post


Link to post

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;
}
 

Share this post


Link to post

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.