-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please create Docker package #10
Comments
We're will working on that (i've discussed with Greg) when he has time to implement the ability of filter region, language and streams like for aac,mp3,FLAC etc. and compiled (for alpine Linux) then. |
Almost done... Just testing now new YTuner 1.1.0 "Xmas Edition". 🎅 |
is this coming? |
I've discussed with Greg. |
I'll want to tackle this first. |
Hi Greg, I came over here from the YCast Project . Unfortunately my pascal knowledge from 1990 (TurboPascal 5.5) has faded and I didn't get the FP/Lazarus running successfully on my Ubuntu 22.04. Too much errors on missing class-properties, folders, ... and SEGFAULT on running YTuner from the IDE. Too much hassle to figure out. I still want to help, especially, if it results in a Docker package that I can install on my Synology NAS. |
@rorso i didn't start with Docker implementation. I do wait for the alpine binaries to,start with, to make docker image small as possible. Regards |
@TheBossME It's OK. Since I have a still unsupported device, the Docker is second. I just want to raise my hand on that Idea. |
Hi @rorso |
@Larsvb0 @TheBossME @rorso
...and with support of all cache types :
With container size of 11.4MB. 🚀 👍 |
sounds good, if you can get a tutorial out I can create one myself, or can you share your docker image? Would be good to have a volume where I can drop the ini and yml file |
I tried and tried but I am just not good enough for this. From the manual I do not get why do I create the Ytuner and config direcorty but not use it? I am working fully in the Ytuner-docker directory. Extract gives me errors that the files do not exist. I copied them manually, tried to build an image (which succeeded but I cannot seem to install the docker. Can't you upload yours to docker.io? |
I assume you have installed Docker correctly and you can run
YTuner will use them.
As you probably know, the contents of the container are not permanent and after restarting it, everything you previously saved in it (cache,config,db) will be lost. Therefore, there is no point in saving cache, config and data in the container structure. Therefore, parameters
What extract? This one: At what step of my mini tutorial did you stuck? I tried to describe it as best as I could, but maybe I was wrong somewhere... Finally, fundamental question. Why do you want to run YTuner in a container? Because it's fashionable or do you really need to isolate the YTuner process ?
Unfortunately, I'm not familiar with a Portainer. |
thanks, I will try again and let you know how it goes. The main problem is I have no linux experience. Using Docker and Portainer allows me to understand what I am doing and installing and understand how it work. And it work perfect for other containers as well. i have the config files connected to a share using volumes so I can control what the application in the containers does. |
For me it's going to run on a Synology NAS where the only two possibilities are "within a dedicated VM with own OS" or "within a Docker container and fetched from DockerHub". Given the limited resources on this NAS, a VM is overkill. Eventually this function can get moved to a HomeAssistant instance where it may run "as an integration" or "as an add-in, running in Docker". Even with regular Linux, application installations tend to go into Docker, SNAP, AppImage instead of distribution packages. |
It's time for me to come back to ytuner and building a docker-compose.yaml file right ? I'm actually in a network recreation involved for a friend of mine. I will come back soon. |
when going through the manual I now have the following:
When I run this: sudo docker build -t ytuner:1.2.2 . so it seems I build a 11MB file. Now when I run this: sudo docker run --rm -p 80:80/tcp -p 53:53/udp -v ~/YTuner:/app/host-shared ytuner:1.2.2 |
@rorso |
@Larsvb0
The reason for your error is prosaic and results from the lack of permissions to execute the ytuner 😉 |
@TheBossME |
I've tried to start ytuner under alpine Linux x64_x86 without success. I've already changed the executable bit with command: chmod +x ytuner So,the musl libraries seems to be missed. Will check with arm64 (aarch64) and will come back. |
@TheBossME
😉
Now, You know what to do to run YTuner on Alpine Linux. 😉 |
We never read readme's 🤣🙈😂🥂👍 ashes to my head 🤣🙈🔥 |
yes, I got the Docker running. However, it is not handing out any radiostations. I ran Ytuner.exe on Windows and this works. I copied thesame stations.ini to the Docker version but My stations and Browser on Denon X3200W is giving an empty list. Loglevel is 4: |
How,do you handle dns requests from your avr ? Via dnsmasq or static on the avr ? |
I disabled DNS in config file and do DNS static via router. All to vtuner.com are routed to Docker. This works with the Windows version. You can see in the log that it reaches the docker container. The three GETs are from accessing My Stations. |
Here my dnsmasq entries: ����"address=/radioyamaha.vtuner.com/192.168.178.100", I'm testing with two ytuner machines actually. Tests not finished yet. |
I assume you see root screen menu with
Unfortunately, I can't see any line of your log related to get
If there are no such requests in the log, it means that such queries do not reach YTuner. So where are they blocked? |
Windows SSl=1 DNS=1 Loglevel=4: YTuner v1.2.2 Copyright (c) 2024 Greg P. (https://github.com/coffeegreg) Docker SSl=1 DNS=1 Loglevel=4: YTuner v1.2.2 Copyright (c) 2024 Greg P. (https://github.com/coffeegreg) first entry is because old stream is loaded. |
Yes, this is a valid request for "My Stations" content. As mentioned before and as you can see such queries do not reach YTuner running in your container.
|
I'm also concerned about this line (windows) :
Do you have OpenSSL library files :
in the YTuner directory ? |
This works: sudo docker run --rm --network host -v ~/YTuner:/app/host-shared ytuner:1.2.2 On Windows I do not have those libraries in the Ytuner directory. I was not aware these were needed. |
I'm glad to know it works for you 👍 Thanks to you, I managed to improve my mini tutorial.
As Beatrice @TheBossME mentioned before #10 (comment) :
Maybe I should include these OpenSSL libraries as standard in the Windows version of YTuner release but I'm not entirely sure if that would violate the OpenSSL license. 🤔 |
I think I can close this issue. |
It would be great if this could run inside Docker!
thanks!
The text was updated successfully, but these errors were encountered: