INTERACT FORUM

Please login or register.

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

Author Topic: Docker Images for MC31  (Read 4547 times)

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 359
Docker Images for MC31
« on: May 16, 2023, 02:52:41 pm »

Iīve updated my container image to include mc31 builds now (starting with 31.0.12).

https://hub.docker.com/r/shiomax/jrivermc

The jlesage based image Iīve had before this one hasnīt been updated. Iīd prefer only to build this one moving forward for newer versions of mc. If there is anything missing that you must have that was working in the image before just hit me up. Will see what I can do. The mc30 thread has been completely dead silent for the most part (Iīm assuming that means "working as intended" for the people that are using it).

The repo for the new image is the same. Just do a backup, change the tag from latest-30 to latest-31 and restore from the backup.
Logged

sjhilton

  • Junior Woodchuck
  • **
  • Posts: 75
Re: Docker Images for MC31
« Reply #1 on: May 16, 2023, 08:36:01 pm »

Thanks Max - all working fabulously. I use your container as my main music server and it is very reliable. Thank you for maintaining this.
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 910
Re: Docker Images for MC31
« Reply #2 on: May 23, 2023, 01:31:58 pm »

Thank you Max!
I am running 31.0.12 in docker on my Synology and it works flawlessly. Greatly appreciate your support of docker.
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (32.0.58 64 bit): 2787
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (32.0.58 64 bit): 3517
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sonoma 14.5 | JRMark (32.0.58 64 bit): 9289
Docker Container (shiomax) DS1819+ | JRMark (32.0.58 64 bit): 1419
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

xdeyzaguirre

  • Member
  • *
  • Posts: 4
Re: Docker Images for MC31
« Reply #3 on: July 13, 2023, 05:37:49 am »

I use QNAP TS-453D with QTS, After the update to QTS 5.1.0.2444, and Container Station to Versión 3.0.3.457 (2023/05/26) JriverMC don't work as a server.
It seems to work well, but I don't connect with http://"IP":49154 (port redirected to 5800)
Thanks in advance
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 359
Re: Docker Images for MC31
« Reply #4 on: July 13, 2023, 12:31:08 pm »

I use QNAP TS-453D with QTS, After the update to QTS 5.1.0.2444, and Container Station to Versión 3.0.3.457 (2023/05/26) JriverMC don't work as a server.
It seems to work well, but I don't connect with http://"IP":49154 (port redirected to 5800)
Thanks in advance

Probably, you have https enabled. The http to https redirection that is in the current image does not work well when you remap the port. You need to type in https://"IP":49154 and it wonīt redirect you.

This is already fixed in the next version, but might be some time until that is released. You can grab the nginx config from the dev branch and map it over /etc/nginx/sites-available/https_config if you want that specific change now (https://gitlab.com/shiomax/jrivermc-docker/-/raw/dev/rootfs/etc/nginx/sites-available/https_config). With that it should redirect to https to the port you have entered in the browser as opposed to always 5800.
Logged

xdeyzaguirre

  • Member
  • *
  • Posts: 4
Re: Docker Images for MC31
« Reply #5 on: July 17, 2023, 05:41:06 am »

Today, after reinstalling the image, the problem is solved.
Thanks a lot.
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 359
Re: Docker Images for MC31
« Reply #6 on: July 28, 2023, 08:17:39 pm »

'Done' with 0.4.0 now (never really done I guess).

Note while you can upgrade to this version it is not backwards compatible. So if you have issues and want to downgrade you need to delete the file /config/appstorage/db.sqlite first or it will fail to start.

The default for SECURE_CONNECTION is now channged to 1 because novnc seems to really want a SSL certificate (if you manage SSL certs elsewhwere feel free to disable it). If you ever opened the dev console when not using SSL it would print out the following "noVNC requires a secure context (TLS). Expect crashes!". Not a huge issue as it has generally been stable enough regardless. SSL certs will now also regenerate without requiring a container restart. The fix for HTTP to HTTPS redirection I wrote about earlier is also part of this.

You can now also use TOTP as 2FA for the container. Works with apps like Google Authenticator, Authy or Microsoft Authenticator. Any app that supports TOTP should work. Not entierly happy with the table I conjured up, yet. But guess making the UI more pretty can be done later too. Probably, will also add another table later to add/remove users. Multiple users where always possible in the container, there just was no UI for it. Since, I now made a table itīs relatively straight forward. Tables are hard if you draw them yourself. Did not use any UI library for the UI. Main reasons being that building custom UI elements is something that at work I feel like Iīm expected to be able to do when its needed, yet practically almost never do because itīs faster to use something off the shelf. So itīs good training if you will. And also using something like vuetify youīd be stuck with vuejs, upgrades become more complicated. I think itīs not too unreasonable to assume that I could be using the container in 10 years, still. But will I want to use vuejs in 10 years? Not sure, donīt know. Itīs great now, maybe itīs on life support in 10 years. If I build my own UI elements itīs fairly straight forward to switch to whatever the heck I want. Say, switching to react right now would be "just a ton of typing code", but it would be straight forward to make it look and feel the same afterwards.

The image is a bit bigger now, but that does not have anything to do with new stuff added or installed. .NET 8 will make it possible to AOT compile api's (effectively compiling it to machine code instead of shipping a runtime similar to how go does it). But itīs still a few month until that is released and some of the changes that where necessary to make it work when .NET 8 releases also break trimming right now (which is what I previously used to keep it smaller). AOT should be smaller than the trimmed app, use up slightly less memory and start up faster.
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 910
Re: Docker Images for MC31
« Reply #7 on: July 29, 2023, 03:51:45 pm »

Thank you Max!
I really appreciate your support for docker very much.
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (32.0.58 64 bit): 2787
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (32.0.58 64 bit): 3517
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sonoma 14.5 | JRMark (32.0.58 64 bit): 9289
Docker Container (shiomax) DS1819+ | JRMark (32.0.58 64 bit): 1419
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 359
Re: Docker Images for MC31
« Reply #8 on: August 22, 2023, 12:31:02 pm »

Updated the image to bookworm. Early versions of mc29 wonīt install (specifically 29.0.18, 29.0.20, 29.0.26, 29.0.30 and 29.0.32), so they donīt exist. Later versions of mc (including 29) work. If there are issues on older mc versions that I did not catch can revert that for specific mc versions.

The docs / readme is now only on gitlab because as it turns out dockerhub has a limit on how much text you can write and its now longer than that limit.
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 910
Re: Docker Images for MC31
« Reply #9 on: August 23, 2023, 09:25:54 am »

Thanks Max!
It's working perfectly
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (32.0.58 64 bit): 2787
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (32.0.58 64 bit): 3517
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sonoma 14.5 | JRMark (32.0.58 64 bit): 9289
Docker Container (shiomax) DS1819+ | JRMark (32.0.58 64 bit): 1419
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 910
Re: Docker Images for MC31
« Reply #10 on: August 26, 2023, 09:55:05 am »

One thing I noticed is that docker hub has not updated to 31.0.48 and still has .46 as the latest. Is there a reason for that?
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (32.0.58 64 bit): 2787
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (32.0.58 64 bit): 3517
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sonoma 14.5 | JRMark (32.0.58 64 bit): 9289
Docker Container (shiomax) DS1819+ | JRMark (32.0.58 64 bit): 1419
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 359
Re: Docker Images for MC31
« Reply #11 on: August 29, 2023, 08:51:31 am »

One thing I noticed is that docker hub has not updated to 31.0.48 and still has .46 as the latest. Is there a reason for that?

Forgot to enable it. Should work again now.
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 910
Re: Docker Images for MC31
« Reply #12 on: September 01, 2023, 09:36:03 am »

Thanks Max!
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (32.0.58 64 bit): 2787
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (32.0.58 64 bit): 3517
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sonoma 14.5 | JRMark (32.0.58 64 bit): 9289
Docker Container (shiomax) DS1819+ | JRMark (32.0.58 64 bit): 1419
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

Richard Martin

  • World Citizen
  • ***
  • Posts: 227
Re: Docker Images for MC31
« Reply #13 on: September 01, 2023, 11:27:21 am »

Logged

danrien

  • Galactic Citizen
  • ****
  • Posts: 369
  • Chillin
Re: Docker Images for MC31
« Reply #14 on: September 18, 2023, 10:10:27 am »

Works great!
Logged
http://davidvedvick.info

"Always be yourself. Unless you can be Batman. Always be Batman." - Anonymous

666JTK666

  • Junior Woodchuck
  • **
  • Posts: 72
Re: Docker Images for MC31
« Reply #15 on: September 22, 2023, 11:21:18 pm »

howdy, if i install the docker version will it conflict with the installjrmc 31 version ? or is it completly seperate from it ?
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7507
  • When Summer comes...
Re: Docker Images for MC31
« Reply #16 on: September 23, 2023, 06:45:43 am »

Completely separate as it's containerized.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2024 Update (24H2) 64-bit + Ubuntu 24.04 LTS Noble Numbat 64-bit | Windows 11 2024 Update (24H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 359
Re: Docker Images for MC31
« Reply #17 on: September 23, 2023, 07:43:22 am »

Its seperate but you cant use the same port twice. So the container may refuse to start when you have medianetwork enabled and MC running. You can remap ports in docker easiely. When you replace the '52199:52199' in the bridge network examples with say '52200:52199' MC in the container will be accessable from 52200 instead.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71828
  • Where did I put my teeth?
Re: Docker Images for MC31
« Reply #18 on: September 23, 2023, 08:26:09 am »

Media Network can run on a different port if you chose one in the options.
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 910
Re: Docker Images for MC31
« Reply #19 on: September 27, 2023, 10:07:45 am »

I noticed that
latest-31.0.59-v0.4.1
has been updated to the latest version but
latest-31
has not
Could that one be updated as well, please?

many thanks!
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (32.0.58 64 bit): 2787
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (32.0.58 64 bit): 3517
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sonoma 14.5 | JRMark (32.0.58 64 bit): 9289
Docker Container (shiomax) DS1819+ | JRMark (32.0.58 64 bit): 1419
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 359
Re: Docker Images for MC31
« Reply #20 on: September 28, 2023, 06:56:02 pm »

I noticed that
latest-31.0.59-v0.4.1
has been updated to the latest version but
latest-31
has not
Could that one be updated as well, please?

many thanks!

Should be up. Though, latest tag gets rebuilt at least once a week or when it detects there is a new version (it looks if there is a .deb file that it did not build an image for yet). If you wait it should be up in a eventually regardless.
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 910
Re: Docker Images for MC31
« Reply #21 on: September 29, 2023, 10:11:01 am »

Thank you, Max!
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (32.0.58 64 bit): 2787
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (32.0.58 64 bit): 3517
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sonoma 14.5 | JRMark (32.0.58 64 bit): 9289
Docker Container (shiomax) DS1819+ | JRMark (32.0.58 64 bit): 1419
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

res80

  • Recent member
  • *
  • Posts: 30
Re: Docker Images for MC31
« Reply #22 on: March 25, 2024, 05:44:59 am »

Hi,

thanks for the docker images, they are really great!
I've been using nginx to reverse proxy to both JRiver in novnc and to the JRiver Panel.
However, I never managed to use music.example.com for Panel and music.example com/admin for the novnc access.
So I had to use another subdomain (jriver.example.com) for that purpose.
I've recently switched to Caddy and failed again to do so.
I even tried to reverse it, having novnc on the root of the subdomain and jriver panel in a subfolder, but I also failed.

How are you all handling this?

Also, I cannot use the domain name to connect with the JRiver Windows app, but only the access code.
However, whenever my public IP is updated, I have to enter username and password again. Is there a way to fix this as well?
For JRemote, access works great with the domain name.
Kind regards,
Ruediger
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 359
Re: Docker Images for MC31
« Reply #23 on: March 25, 2024, 04:10:11 pm »

music.example com/admin for the novnc access.

This can be done but not once the images are built. This is a configuration change that you have to do before building the image. So if you wish to do this you have to build your own docker images from source.

It does not matter what reverse proxy you throw at it. It simply will not work with any of them. The UI has to know that the base URL is no longer '/', but rather '/admin' and then your reverse proxy has to match that.
Logged

res80

  • Recent member
  • *
  • Posts: 30
Re: Docker Images for MC31
« Reply #24 on: March 26, 2024, 01:32:40 am »

Thanks for your fast reply!
I guess I'll stick with separate subdomains then, re-building your amazing image is too complicated for me ;)
Thanks a lot for the nice docker images!
Kind regards,
Ruediger
Logged
Pages: [1]   Go Up