INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: JRiver Media Center - Docker image  (Read 26762 times)

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
JRiver Media Center - Docker image
« on: July 23, 2016, 03:58:26 am »

Hello,

I made my own docker image for JRiver and wanted to share my work with the community.

For those who don't know Docker, in few words, this is a lightweight app containerization solution. It does mean an image contains the application and the environment with its dependencies that run isolated from the docker host.
To be clear, you download it, you run it and it works ! You have nothing else to do. that's all.

It's by far the most exciting new techno these last years and the more efficient way to distribute softwares specially from a developper perspective. Because the dev environnement and the end-user environnement are the same, developpers can focus on their application and no more on how to make their software working on multiple environnements.

So I made JRiver app and JRiver data running in separated containers which are fully isolated. JRiver runs with users rights for security reason (no root rights).
It supports DLNA, auto-update and is easy to backup/restore.

You should give a try and you will understand how Docker is powerfull and that's the way to go.

JRMC21 and JRMC22 build are available here:
https://hub.docker.com/r/cassfras21/jrivermc/
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

mcollier

  • World Citizen
  • ***
  • Posts: 100
Re: JRiver Docker image
« Reply #1 on: July 23, 2016, 07:23:54 am »

This is awesome!  How did you address the matter of getting a license installed?
Logged

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
Re: JRiver Docker image
« Reply #2 on: July 23, 2016, 09:05:15 am »

This is awesome!  How did you address the matter of getting a license installed?

There are 2 ways, with user interface or with command line. I personaly use the ui way.

UI

You have access to JRiver ui through VNC. The first time you connect to VNC, you need to right-click in the window then go to Desktops > desktop 1 > (Media Center)
Then you can activate your licence just by copy/paste

CMDLINE

For the second way, you need to run bash with docker exec command:

Code: [Select]
docker exec -it MyJRiverAppContainerName /bin/bash
Then use the JRiver command to restore your licence
Code: [Select]
mediacenter21 /RestoreFromFile "Media Center21 Linux-YYYYYY.mjr"
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

sjhilton

  • World Citizen
  • ***
  • Posts: 101
Re: JRiver Media Center - Docker image
« Reply #3 on: August 16, 2016, 07:44:43 am »

This is fabulous. I've been running MC21 and MC22 in a linux vm on my QNAP NAS for the last 12 months or so. I've managed to set this up in QNAP's Container Station in about 5 minutes. Works straight out of the box once you set up the shared folders and networking in container station. This or something like it should have official support as soon as possible. It's much easier than creating/managing a separate linux VM.

(The only downside I've noticed so far is that the memory usage is very high (over 90%) when transcoding video so I'm not sure if I need to make any additional devices available to the container to reduce the load.)
Logged

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
Re: JRiver Media Center - Docker image
« Reply #4 on: August 16, 2016, 09:02:00 am »

This is fabulous. I've been running MC21 and MC22 in a linux vm on my QNAP NAS for the last 12 months or so. I've managed to set this up in QNAP's Container Station in about 5 minutes. Works straight out of the box once you set up the shared folders and networking in container station. This or something like it should have official support as soon as possible. It's much easier than creating/managing a separate linux VM.

(The only downside I've noticed so far is that the memory usage is very high (over 90%) when transcoding video so I'm not sure if I need to make any additional devices available to the container to reduce the load.)

Glad to know you like it! As I said, Docker rocks :)

For the excessive memory usage, did you try both versions mc21 and mc22? In my opinion it might be the mc behavior and nothing to do with the container.
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

sjhilton

  • World Citizen
  • ***
  • Posts: 101
Re: JRiver Media Center - Docker image
« Reply #5 on: August 16, 2016, 09:12:24 am »

No worries - yes it could be an issue with the newer mc22, which is the only one I've used so far. I use it mostly for music so it's not a big problem.


Logged

robydago

  • Citizen of the Universe
  • *****
  • Posts: 518
Re: JRiver Media Center - Docker image
« Reply #6 on: October 22, 2016, 04:47:30 am »

@cassfras21

I'v installed your data container on a QNAP.
When I start the container it just shows the output of the echo command and the container stops.

Any idea?
Logged

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
Re: JRiver Media Center - Docker image
« Reply #7 on: October 22, 2016, 05:21:32 am »

@cassfras21

I'v installed your data container on a QNAP.
When I start the container it just shows the output of the echo command and the container stops.

Any idea?


This is the expected behavior. To run JRiver, you need both containers app and data. In your case you should run the app container (DLNA).
The app container is the running container and the data container holds the jriver config files but doesn't need to be running for this. So to save resources it just starts and then stops.
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13941
Re: JRiver Media Center - Docker image
« Reply #8 on: October 24, 2016, 05:36:41 pm »

I've played with this a bit on a QNAP.
Once I figured out how to install it I was amazed by how easy it is to use.
A couple of ideas.
Add the Key and Repo so it can be updated.
Upon shutdown kill it with a HUP signal (not TERM) and wait for it to shutdown. It can take up to a minute but it's the best approach (signs off with network devices and closes the settings files properly).

Oddly enough, when I rebooted it couldn't figure out the port mapping for the vnc again so I couldn't connect to it graphically.
Logged

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
Re: JRiver Media Center - Docker image
« Reply #9 on: October 25, 2016, 12:47:45 pm »

Add the Key and Repo so it can be updated.

Update is already available. To enable/disable autoupdate you have to change the ENV_UPDATE variable to yes/no
It was working fine until now. Since JRiver 22.0.33 (or maybe previous version) is out I have a new issue. if I run a new container app with autoupdate enabled, jriver won't start at all even after reboot. So the container becomes unusable. The work around is to create the new container with ENV_UPDATE set to no, then stop the container and enable the update with ENV_UPDATE set to yes.

If you want to see more about the docker file (where I load the key and repo) and other stuffs you can here https://github.com/cassfras21/docker-jrivermc/tree/master/latest

Upon shutdown kill it with a HUP signal (not TERM) and wait for it to shutdown. It can take up to a minute but it's the best approach (signs off with network devices and closes the settings files properly).

I may be wrong but I think this part is managed by docker so I can't change the way the container kills jriver. Or maybe it has to do with the process manager supervisord.

Oddly enough, when I rebooted it couldn't figure out the port mapping for the vnc again so I couldn't connect to it graphically.

This happens when your tcp port 5900 is already in use with another app on your QNAP. If it's the case you should map another port to VNC by changing this "-p 5900:5900" in the docker run command to "-p 5901:5900" for example. Then you should be able to connect graphically to tcp port 5901.
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

NoFace

  • Recent member
  • *
  • Posts: 14
Re: JRiver Media Center - Docker image
« Reply #10 on: January 12, 2017, 08:10:37 am »

Hey y'all ive installed the docker image and im able to vnc in to it but the jriver media center icon isnt there and i get the msg below in the console.

Code: [Select]
Obt-Message: XRandR extension is not present on the server                                                                       
Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml"                                             
2017-01-12 14:06:10,845 CRIT Set uid to user 999                                                                                 
2017-01-12 14:06:10,865 INFO supervisord started with pid 1                                                                     
2017-01-12 14:06:11,867 INFO spawned: 'x11vnc' with pid 59                                                                       
2017-01-12 14:06:11,868 INFO spawned: 'mediacenter' with pid 60                                                                 
2017-01-12 14:06:12,254 INFO exited: mediacenter (terminated by SIGSEGV; not expected)                                           
2017-01-12 14:06:13,277 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)       
2017-01-12 14:06:13,278 INFO spawned: 'mediacenter' with pid 63                                                                 
2017-01-12 14:06:13,512 INFO exited: mediacenter (terminated by SIGSEGV; not expected)                                           
2017-01-12 14:06:15,514 INFO spawned: 'mediacenter' with pid 66                                                                 
2017-01-12 14:06:15,668 INFO exited: mediacenter (terminated by SIGSEGV; not expected)                                           
2017-01-12 14:06:18,672 INFO spawned: 'mediacenter' with pid 69                                                                 
2017-01-12 14:06:18,827 INFO exited: mediacenter (terminated by SIGSEGV; not expected)                                           
2017-01-12 14:06:19,828 INFO gave up: mediacenter entered FATAL state, too many start retries too quickly     

Can anyone help?

Thanks
Logged

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
Re: JRiver Media Center - Docker image
« Reply #11 on: January 12, 2017, 08:43:49 am »

Hey y'all ive installed the docker image and im able to vnc in to it but the jriver media center icon isnt there and i get the msg below in the console.

Code: [Select]
Obt-Message: XRandR extension is not present on the server                                                                       
Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml"                                             
2017-01-12 14:06:10,845 CRIT Set uid to user 999                                                                                 
2017-01-12 14:06:10,865 INFO supervisord started with pid 1                                                                     
2017-01-12 14:06:11,867 INFO spawned: 'x11vnc' with pid 59                                                                       
2017-01-12 14:06:11,868 INFO spawned: 'mediacenter' with pid 60                                                                 
2017-01-12 14:06:12,254 INFO exited: mediacenter (terminated by SIGSEGV; not expected)                                           
2017-01-12 14:06:13,277 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)       
2017-01-12 14:06:13,278 INFO spawned: 'mediacenter' with pid 63                                                                 
2017-01-12 14:06:13,512 INFO exited: mediacenter (terminated by SIGSEGV; not expected)                                           
2017-01-12 14:06:15,514 INFO spawned: 'mediacenter' with pid 66                                                                 
2017-01-12 14:06:15,668 INFO exited: mediacenter (terminated by SIGSEGV; not expected)                                           
2017-01-12 14:06:18,672 INFO spawned: 'mediacenter' with pid 69                                                                 
2017-01-12 14:06:18,827 INFO exited: mediacenter (terminated by SIGSEGV; not expected)                                           
2017-01-12 14:06:19,828 INFO gave up: mediacenter entered FATAL state, too many start retries too quickly     

Can anyone help?

Thanks

Hello,

Since Theater integration in Linux version, there are some drawbacks because of new requirements.
You should delete your current app container then run it again with the autoupdate disabled by setting the environnement variable ENV_UPDATE to 'no'.
That way it should run without problems.

-e ENV_UPDATE=no \
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

NoFace

  • Recent member
  • *
  • Posts: 14
Re: JRiver Media Center - Docker image
« Reply #12 on: January 12, 2017, 09:31:14 am »

thanks cassfras21 that worked a treat  :)

Just trying to figure out how to access my files on my nas now  ?
Logged

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
Re: JRiver Media Center - Docker image
« Reply #13 on: January 13, 2017, 03:17:24 am »

thanks cassfras21 that worked a treat  :)

Just trying to figure out how to access my files on my nas now  ?

This command mounts a volume from your nas to the container.

Code: [Select]
-v <local_media_volume>:/mnt/media \
So in the container, your files are in the directory /mnt/media where <local_media_volume> is your nas local folder.
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

NoFace

  • Recent member
  • *
  • Posts: 14
Re: JRiver Media Center - Docker image
« Reply #14 on: January 13, 2017, 08:35:43 am »

This command mounts a volume from your nas to the container.

Code: [Select]
-v <local_media_volume>:/mnt/media \
So in the container, your files are in the directory /mnt/media where <local_media_volume> is your nas local folder.

Tried the following and when i try open a media file in jriver it shows as a empty folder in mnt/media

Code: [Select]
docker run -d \
--name=jrivermc22 \
-e ENV_UPDATE=no \
-e ENV_VNCPASS=jriver \
-h 192.168.0.100 \
-p 5905:5900 \
-p 52195:52199 \
--volumes-from jrivermc22--data-container \
-v Media:/mnt/media \
cassfras21/jrivermc



is there something im doing wrong?

Thanks
Logged

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
Re: JRiver Media Center - Docker image
« Reply #15 on: January 13, 2017, 10:55:33 am »

I guess you are trying to achieve this with a LUN volume but you're wrong
<local_media_volume> is the directory path to your local media folder on your nas.

For example if have your music is in the directory /home/user/music

Code: [Select]
docker run -d \
--name=jrivermc22 \
-e ENV_UPDATE=no \
-e ENV_VNCPASS=jriver \
-h 192.168.0.100 \
-p 5905:5900 \
-p 52195:52199 \
--volumes-from jrivermc22--data-container \
-v /home/user/music:/mnt/media/music \
cassfras21/jrivermc
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

NoFace

  • Recent member
  • *
  • Posts: 14
Re: JRiver Media Center - Docker image
« Reply #16 on: January 13, 2017, 04:19:48 pm »

I guess you are trying to achieve this with a LUN volume but you're wrong
<local_media_volume> is the directory path to your local media folder on your nas.

For example if have your music is in the directory /home/user/music

Code: [Select]
docker run -d \
--name=jrivermc22 \
-e ENV_UPDATE=no \
-e ENV_VNCPASS=jriver \
-h 192.168.0.100 \
-p 5905:5900 \
-p 52195:52199 \
--volumes-from jrivermc22--data-container \
-v /home/user/music:/mnt/media/music \
cassfras21/jrivermc

That seems to have done the trick. Thank you

I can now see all my files and ive imported my library from previous library and everything is valid and present and working  :).

Just a little stuck on the networking. Its showing as 10.0.3.2 but my network is the regular 192.168.0... etc. How do i get the contain to work with my network so i can access jriver remotely.

Sorry for my noob-ism, still new to linux.
Logged

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
Re: JRiver Media Center - Docker image
« Reply #17 on: January 14, 2017, 03:13:19 am »

This is the default way docker works with networks. If you don't use DLNA/uPnp with JRiver you have nothing to change.
Based on your settings, if your nas IP is 192.168.0.10, JRiver should be accessible at 192.168.0.10:52195

Now if DLNA matters for you, you should consider to run the other app container starting with

Code: [Select]
docker run -d \
--name=jrivermc22 \
--net=host \
--pid=host \

With this settings, your container will be on the same subnet and have the exact same IP than your Nas. It is necessary to allow SSDP broadcasting and so DLNA devices discovering.
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72543
  • Where did I put my teeth?
Re: JRiver Media Center - Docker image
« Reply #18 on: January 14, 2017, 05:45:56 am »

... JRiver should be accessible at 192.168.0.10:52195
If that doesn't work, try 192.168.0.10:52199
Logged

NoFace

  • Recent member
  • *
  • Posts: 14
Re: JRiver Media Center - Docker image
« Reply #19 on: January 14, 2017, 06:38:03 am »

This is the default way docker works with networks. If you don't use DLNA/uPnp with JRiver you have nothing to change.
Based on your settings, if your nas IP is 192.168.0.10, JRiver should be accessible at 192.168.0.10:52195

Now if DLNA matters for you, you should consider to run the other app container starting with

Code: [Select]
docker run -d \
--name=jrivermc22 \
--net=host \
--pid=host \

With this settings, your container will be on the same subnet and have the exact same IP than your Nas. It is necessary to allow SSDP broadcasting and so DLNA devices discovering.

I was connecting to the default port which is why it wasn't connecting  :-[. now running on 52195 and all is well  :)
Just about to hit the delete key on my window vm now  ;D

Thanks again for all your help

If that doesn't work, try 192.168.0.10:52199

Yeah that was the issue i was trying to connect to 52199 instead of 52195. Now everythings working flawlessly  :)
Logged

NoFace

  • Recent member
  • *
  • Posts: 14
Re: JRiver Media Center - Docker image
« Reply #20 on: January 14, 2017, 08:10:48 am »

Dont suppose you guys know a way of getting the file browser to open/launch up via the terminal so i can drag and drop files to my playlists.
been trying all sorts of commands for the last hour but nothing seems to be installed, im guessing to keep the container as light as possible.
Logged

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
Re: JRiver Media Center - Docker image
« Reply #21 on: January 14, 2017, 09:13:12 am »

Dont suppose you guys know a way of getting the file browser to open/launch up via the terminal so i can drag and drop files to my playlists.

There's no file browser in the docker image. Docker runs JRiver app and its depedencies but no more, it is not like a vm where you run a system and your apps.
Once your JRiver container is well set up you should never have to use the terminal for that usage.
For daily use like files and playlists management you can run JRiver from your desktop by connecting to your remote library server and dealing with JRiver syncing feature.
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

NoFace

  • Recent member
  • *
  • Posts: 14
Re: JRiver Media Center - Docker image
« Reply #22 on: January 14, 2017, 09:49:32 pm »

There's no file browser in the docker image. Docker runs JRiver app and its depedencies but no more, it is not like a vm where you run a system and your apps.
Once your JRiver container is well set up you should never have to use the terminal for that usage.
For daily use like files and playlists management you can run JRiver from your desktop by connecting to your remote library server and dealing with JRiver syncing feature.

Just learnt something new on JRiver management. Been doing it the long way for the last two years  >:(

Thanks for your support much appreciated
Logged

darkm064

  • Member
  • *
  • Posts: 2
Re: JRiver Media Center - Docker image
« Reply #23 on: January 19, 2017, 08:01:33 am »

Hello, could you provide a step by step for a complete noob.  I have installed the docker on my QNAP TS-451.  I am able to get a view of the Panel page by going to <nas ip>:32802/Panel/, but cannot do any setup from there.  The setting page just forwards to a black page.  I tried to use VNC viewer to connect to that address, but it just says "connecting to <nas ip>:32802......" and never connects.  Any help would be great.  I am trying to learn about dockers and want to not use virtual machine Linux install all the time.  Thanks in advance
Logged

NoFace

  • Recent member
  • *
  • Posts: 14
Re: JRiver Media Center - Docker image
« Reply #24 on: January 20, 2017, 07:29:03 am »

Hello, could you provide a step by step for a complete noob.  I have installed the docker on my QNAP TS-451.  I am able to get a view of the Panel page by going to <nas ip>:32802/Panel/, but cannot do any setup from there.  The setting page just forwards to a black page.  I tried to use VNC viewer to connect to that address, but it just says "connecting to <nas ip>:32802......" and never connects.  Any help would be great.  I am trying to learn about dockers and want to not use virtual machine Linux install all the time.  Thanks in advance

How about you give it a go and tell us what part you get stuck on and we'll be able to advise.

first step you will need to make sure 'container' is enabled and installed on your nas (qnap). Then you'll need to ssh into your nas using your favourite terminal. once logged in copy n paste the code/commands on cassfras21 docker page remember to fill out the <> with your information.

to vnc into it. it'll be your nas ip and jriver port number (5900) you specified in '-p 5900:5900'. i changed mine to 5905 by editing this line from cassfras21's docker page '-p 5905:5900'

good luck
Logged

darkm064

  • Member
  • *
  • Posts: 2
Re: JRiver Media Center - Docker image
« Reply #25 on: January 29, 2017, 07:36:21 am »

Thanks poisonivy0  ;D

I followed your instructions and ran the commands on cassfras21 docker page.  All seems good.  I added my library via windows client and synced it.
How would I get my Media Network AccessKey?  I am trying to add my JRiver server to Amazon Echo House Band skill, but that requires getting the servers AccessKey.  Without a gui, I'm lost here.
Logged

NoFace

  • Recent member
  • *
  • Posts: 14
Re: JRiver Media Center - Docker image
« Reply #26 on: January 29, 2017, 07:52:45 am »

Thanks poisonivy0  ;D

I followed your instructions and ran the commands on cassfras21 docker page.  All seems good.  I added my library via windows client and synced it.
How would I get my Media Network AccessKey?  I am trying to add my JRiver server to Amazon Echo House Band skill, but that requires getting the servers AccessKey.  Without a gui, I'm lost here.

Click the link below. It's the top link. Glad you got it up and running .
http://lmgtfy.com/?q=JRiver+access+key
Logged

dskrt

  • Recent member
  • *
  • Posts: 34
Re: JRiver Media Center - Docker image
« Reply #27 on: April 04, 2017, 02:40:21 am »

Hello,

I am running the JRiver docker on a Synology DS416play. It works well as a Networks server with other devices running JRiver, but DLNA devices do not see JRiver. What might be the cause ?
Logged

cassfras21

  • Junior Woodchuck
  • **
  • Posts: 93
Re: JRiver Media Center - Docker image
« Reply #28 on: April 05, 2017, 12:17:23 pm »

Hello,

I am running the JRiver docker on a Synology DS416play. It works well as a Networks server with other devices running JRiver, but DLNA devices do not see JRiver. What might be the cause ?

Hello,

from my github https://github.com/cassfras21/docker-jrivermc/tree/21

App container (DLNA)

Code: [Select]
docker run -d \
--name=jrivermc21 \
--net=host \
--pid=host \
-e ENV_UPDATE=yes \
-e ENV_VNCPASS=<vnc_password> \
-p 5900:5900 \
-p 52100:52100 \
-p 52101:52101 \
-p 52199:52199 \
-p 1900:1900/udp \
--volumes-from jrivermc21--data-container \
-v <local_media_volume>:/mnt/media \
cassfras21/jrivermc:21-latest
Logged
Media server: Synology DS916+ (Dockerised JRiver MC 22) || Media player: Intel NUC D54250WYKH - Windows 10 x64/JRiver MC 22
HiFi: Matrix i-mini Pro 2015 (USB DAC) >> Atoll IN80 SE (Int Amp) >> B&W CM1 S2 & subwoofer B&W ASW610

tutenchamun

  • Recent member
  • *
  • Posts: 27
Re: JRiver Media Center - Docker image
« Reply #29 on: May 05, 2017, 12:49:46 am »

Hey, good work.
I have my Mac connect to x11vnc within the image - but the clipboard is not working.
... do you know how to enable the clipboard on Xorg/x11vnc - it seems to be disabled ?

I am using the DockerImage on my Synology DS1515+ - and everything else works flawless (first time start has to be from the command line with your exact options, 'cause the Synology Docker Wizard is not as versatile).
Logged

tutenchamun

  • Recent member
  • *
  • Posts: 27
Re: JRiver Media Center - Docker image
« Reply #30 on: May 05, 2017, 12:58:47 am »

The clipboard issue seems to be related to x11vnc and it seems that another vnc server might be better suited ... but since it works so good I do not realy want to mess the image up ...
The clipboard works within VNC and the image - but not with the Mac
Logged

szczemirek

  • Recent member
  • *
  • Posts: 12
Re: JRiver Media Center - Docker image
« Reply #31 on: October 03, 2017, 11:08:04 am »

Excellent job. Thanks cassfras21 & ciechomir  ;)
Logged

ciechomir

  • Member
  • *
  • Posts: 1
Re: JRiver Media Center - Docker image
« Reply #32 on: October 06, 2017, 12:56:46 pm »

First thanks to cassfras21. Great and cool stuff !


In my "implementation" installation for beginners in linux (like me;)

Installation procedure with Windows:

First: on QNAP/AppCenter install Container Station.

Next: through PuTTy logon to QNAP and start!
Remember: copy on Windows is: Ctrl+C, on PuTTy Insert on keyboard.

In putty:

apt-get update
apt-get install mc
apt-get install -y wget


# Add JRiver packages to apt-get

wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | apt-key add - 
wget http://dist.jriver.com/stable/mediacenter/mediacenter22jessie.list -O /etc/apt/sources.list.d/mediacenter22.list


# Install JRiver and other required apps
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y mediacenter22 supervisor xserver-xorg-video-dummy x11vnc

rm -rf /var/lib/apt/lists/*


# Add config files

wget https://github.com/cassfras21/docker-jrivermc/blob/master/latest/xorg.conf
cp xorg.conf /etc/X11/


wget https://github.com/cassfras21/docker-jrivermc/blob/master/latest/entrypoint.sh
cp entrypoint.sh /usr/local/bin/

wget https://github.com/cassfras21/docker-jrivermc/blob/master/latest/supervisord.conf
cp supervisord.conf /etc/supervisor/conf.d/


# Set files access permissions
chmod 744 /etc/X11/xorg.conf
chmod 700 /usr/local/bin/entrypoint.sh
chmod 700 /etc/supervisor/conf.d/supervisord.conf


# Add user and group
groupadd -r jriver
useradd -r -ms /bin/bash -g jriverjriver


# Set up VNC
mkdir /home/jriver/.vnc
chown jriver:jriver /home/jriver/.vnc

# Set up JRiver
mkdir /home/jriver/.jriver
chown jriver:jriver /home/jriver/.jriver


Now start dockers with JRiver:
docker run --name=jrivermc22--data-container cassfras21/jrivermc echo "Data-only container for JRiver Media Center 22"

Replace everything between <> with your own setup settings:
<vnc_password>         VNC password, default Password123
<local_media_volume>      directory path to your local media folder on your QNAP,example: /share/Music/ - best way check in  Midnight Commander.

docker run -d --name=jrivermc22-latest --net=host --pid=host -e UPDATE=no -e VNCPASS=<vnc_password> --volumes-from jrivermc22--data-container -v <local_media_volume>:/mnt/media cassfras21/jrivermc:latest


Next download VNC Viewer: https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-6.17.731-Windows.exe
and connect to addres your QNAP to your JRiver

that all folks

Logged

ajw1997

  • Recent member
  • *
  • Posts: 32
Re: JRiver Media Center - Docker image
« Reply #33 on: November 06, 2017, 03:46:12 pm »

Hi all,
Has anyone tried installing JRiver 23 via the docker on a  QNAP?  I need to use 23, as it has new functionality I require. 
In the meantime, I'll try adapting the above code.

Regards ,

Andrew
Logged

dskrt

  • Recent member
  • *
  • Posts: 34
Re: JRiver Media Center - Docker image
« Reply #34 on: February 12, 2018, 12:27:57 pm »

Anyone succeeded to build a docker container with MC 23 ?
Logged

kiwi

  • Citizen of the Universe
  • *****
  • Posts: 817
  • Don't worry, be happy...
Re: JRiver Media Center - Docker image
« Reply #35 on: April 29, 2018, 12:04:32 am »

I was thinking about setting up mc24.
Logged

Jatzoo

  • Recent member
  • *
  • Posts: 26
Re: JRiver Media Center - Docker image
« Reply #36 on: April 30, 2018, 02:32:10 pm »

Yes, it's possible to build docker with MC24 based on cassfras21 docker config files (only change repo and install and start mediacenter24 instead 21).
Yes, it's finally run on Qnap :)
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: JRiver Media Center - Docker image
« Reply #37 on: November 10, 2018, 10:04:01 am »

I just tried to try out JRiver for the first time ever. Installed the docker image from here https://hub.docker.com/r/jatzoo/jrivermc24/

My NAS is a custom build running centos. Kinda a recent installment.

It did install just fine and I can connect to it with Media Center on Windows. But I cannot add anything to the library. I have mounted the folder that contains all my music in the docker container.

I also figured there is some VNC stuff going on with that image I think. But somehow I cannot view the docker file of this exact image. So there is that. But I also cannot connect via VNC Viewer to my server. Tried no port, port 5900 and all the others that where exposed in the media server version 22 docker image.

Just another thing. Is this also gonna sync my playlists? Or only make the music available on every PC? And I´d also want to sync everything to my android phone.
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: JRiver Media Center - Docker image
« Reply #38 on: November 10, 2018, 10:36:08 am »

Ok I found it... using this fancy command "sudo lsof -i -P -n | grep LISTEN" it told me the port it´s running on (5904).

Such things should really be in the docker readme i feel like.  >:(

But glad it works at least now.
Logged

Scobie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 743
  • Looking Busy
Re: JRiver Media Center - Docker image
« Reply #39 on: November 13, 2018, 05:36:50 pm »

Quote
Now if DLNA matters for you, you should consider to run the other app container starting with

Code: [Select]
docker run -d \
--name=jrivermc22 \
--net=host \
--pid=host \

With this settings, your container will be on the same subnet and have the exact same IP than your Nas. It is necessary to allow SSDP broadcasting and so DLNA devices discovering

I'm setting up for DLNA now and just gave the container instance a static IP on the my home network subnet. I haven't imported a library as yet, but wanted to check if there was anything wrong with this method? The container JRiver MC can certainly see all my DLNA devices.

Also re the mount command to access NAS volumes, is it possible to have this run at startup? do I just add it to the fstab file as per Debian?

Thanks for all your dev work in this.

Scobie
Logged

briandee67

  • Member
  • *
  • Posts: 2
Re: JRiver Media Center - Docker image
« Reply #40 on: September 24, 2022, 07:17:05 am »

I'm looking to run JRiver in a container on my NAS but need to stream video as well as music.

The docco on the dockerHub sites refers to the mapping the volume /data/music.  Can it also map another volume to data/video?
https://hub.docker.com/r/shiomax/jrivermc29

Is the linux version of JRiver Media Center able to playback video?
Logged
Pages: [1]   Go Up