Giter Site home page Giter Site logo

apnar / docker-image-logitech-media-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from larsks/docker-image-logitech-media-server

8.0 8.0 10.0 22 KB

Docker Container for Logitech Media Server with Google Music plugin support

License: MIT License

Shell 29.78% Dockerfile 70.22%

docker-image-logitech-media-server's People

Contributors

alexanderadam avatar apnar avatar jinglemansweep avatar larsks avatar sorenfriis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-image-logitech-media-server's Issues

Timezone is set to UTC despite volume mount /etc/localhost from host.

Here is my docker-compose.yml:

services:
  logitechmediaserver:
    build: apnar/logitech-media-server
    environment:
      TZ: "Europe/London"
    network_mode: host
    restart: unless-stopped
    volumes:
    - /etc/localtime:/etc/localtime/ro
    - logitechmediaserver_config:/srv/squeezebox:rw
    - music:/srv/music:ro
version: '3.5'
volumes:
  logitechmediaserver_config: {}
  music:
    driver: local
    driver_opts:
      device: /home/music
      o: bind
      type: none

And yet, you can see the mismatch:

$ ls -al /etc/localtime
lrwxrwxrwx 1 root root 33 May 21 06:08 /etc/localtime -> /usr/share/zoneinfo/Europe/London
$ date
Sat 26 Sep 08:19:43 BST 2020

$ sudo docker exec -it music_logitechmediaserver_1 /bin/bash
# ls -al /etc/localtime 
lrwxrwxrwx 1 root root 27 Feb 12  2020 /etc/localtime -> /usr/share/zoneinfo/Etc/UTC
# date
Sat Sep 26 07:20:17 Europe 2020

I fixed it with my own Dockerfile

FROM apnar/logitech-media-server
ENV TZ Europe/London
RUN apt update && apt install -y tzdata && rm -rf /var/lib/apt/lists/*
RUN echo "${TZ}" | tee /etc/timezone && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime

Are you able to recreate this issue?

CastBridge plugin

Hi Apnar,

I really enjoy using your docker, but I would like to use the CastBridge plugin and I can't get it to work. It seems to be a privilige issue or something. It can't create the castbridge.xml file.

I tried both binaries with no success. I don't see a useful error anywhere.

CastBridge log:

`Starting Squeeze2cast: /srv/squeezebox/cache/InstalledPlugins/Plugins/CastBridge/Bin/squeeze2cast-x86-64-static -Z -I -f /srv/squeezebox/logs/castbridge.log -d all=debug -x /srv/squeezebox/prefs/castbridge.xml
[08:40:55.594173] main:1269 Starting squeeze2cast version: v1.40.5 (Jun 18 2020 @ 09:49:25)
[08:40:55.594207] main:1277

!!!!!!!!!!!!!!!!!! ERROR LOADING CONFIG FILE !!!!!!!!!!!!!!!!!!!!!

[08:40:55.594326] register_alac:550 using alac to decode alc
[08:40:55.594338] register_mad:430 using mad to decode mp3
[08:40:55.594351] register_faad:647 using faad to decode aac
[08:40:55.594360] register_vorbis:346 using vorbis to decode ogg
[08:40:55.594369] register_pcm:339 using pcm
[08:40:55.594378] register_flac:313 using flac to decode flc
[08:40:55.594387] register_opus:286 using opus to decode ops
[08:40:55.594395] register_m4a_thru:307 using mp4 to aac (ADTS)
[08:40:55.594404] register_flac_thru:247 using flac
[08:40:55.594425] register_thru:106 using thru
[08:40:55.594434] register_soxr:394 using soxr for resampling
[08:40:55.594442] Start:1038 Binding to 172.17.0.7:49152 `

Do you use the plugin? Can you help me debug the issue please?

I have also tested without a mount to the docker container, so everything default. And I also tried priviliged mode with no success.

Docker log only this:

[20-07-26 08:45:28.9053] Plugins::CastBridge::Squeeze2cast::configHandler (258) /srv/squeezebox/prefs/castbridge.xml

Local Plugins folder

Hi @apnar,
Thanks for maintaining this image!
The /usr/share/squeezeboxserver/Plugins/ is a symbolic link to /var/lib/squeezeboxserver/Plugins in the image instead of /srv/squeezeboxserver/Plugins. It prevents from adding local Plugins directly in this folder. If you agree to change that, I can submit a PR.
Cheers

LMS not discoverable

The example you give for running the container prevents it from being discoverable to other devices on the network as it will send broadcast packets over the docker network. Using the host network resolves this issue.

newest version not installed

hey there

thanks for your work, works pretty awesome when installing!

Only thing that doesnt work (and I dont know why) but maybe the problem ist not with your docker image:
when I upgrade the docker image with rancher, it doesn't install the newest version. ich checked your dockerfile and they way you get the nightly and that seems to work out right

so i do not believe there's much to be done on your side ... but maybe i'm overlooking something?

Version

I am relatively new to Docker. I used your "Docker run" example. When LMS is started it reports version:
Logitech Media Server Versie: 8.0.0 - 1603862260 @ Wed Oct 28 07:37:41 CET 2020

If I understand your docker file correctly it should obtain the latest from: http://downloads.slimdevices.com/nightly/?ver=8.0
Which contains a newer version (November 20)

Any idea why this is ?

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.