Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 11 FirstFirst 1234 ... LastLast
Results 11 to 20 of 107
  1. #11
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,418

    'Official' docker container for LMS?

    > Pretty much, how to get from a git checkout to a running system.

    Ok, then your best bet would probably be getting Perl 5.28 on that
    system. Because we have binaries for it on x86_64, armhf, and aarch64.

    The Debian build file lists the following dependencies:

    libc6, libgcc1, libstdc++6, zlib1g, libio-socket-ssl-perl, ca-certificates

    Whatever that might be on Alpine.

    > Appreciate you can't provide specific instructions for Alpine, but
    > something along the lines of 'check out this directory, make sure perl
    > and these modules are installed, run the service' etc.


    slimserver.pl is what you'll need to run. Run it with --help to get
    information about how to tell it where to find things.

    And make sure you do a shallow clone. It'll still be several hundred
    megabytes. If you want to delete some of it, then CPAN/arch/ is a good
    candidate to remove everything you don't need for your platform. And Bin/.

    --

    Michael

  2. #12
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,045
    I cannot follow what you are asking, is your plan to start from complete scratch???? If you don't want to use any pre-compiled binaries, then you need to look at a different repo too.

    This is the main server: https://github.com/Logitech/slimserver

    Everything under /Bin and /CPAN/arch, are compiled from sources found here: https://github.com/Logitech/slimserver-vendor


    So perhaps you should outlay where you want to start from.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #13
    Senior Member
    Join Date
    May 2005
    Location
    UK
    Posts
    744
    I don't necessarily want to start completely from scratch.

    The end goal is to get a Docker container created that is as small as possible, able to run with minimal configuration and be easily updatable whenever there's a new LMS release.

    Based on images sizes alone, it sounds like Alpine might be a good start for this. However, if this makes things difficult, then expanding the image size by basing it on Debian probably isn't the end of the world.

    Apologies if I'm not being more clear, but I'm still finding my feet with all this myself.

    As a bit of background, I've been successfully running LMS from Debian packages for years. Just considering moving it all to Docker in line with the way I've been splitting up various other services on my network.

    Andy

  4. #14
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,418

    'Official' docker container for LMS?

    > I don't necessarily want to start completely from scratch.

    Just saw that Alpine is based around musl, rather than glibc. Which
    means that you'd have to build all binaries yourself. I'm not sure you
    want to go there. It's probably more reasonable to start with a
    minimalist Debian based system. Then pull down nightlies for your platform.

    --

    Michael

  5. #15
    Senior Member
    Join Date
    May 2005
    Location
    UK
    Posts
    744
    Thanks for that info. In that case it should be relatively simple. Just need a mechanism that queries for the latest nightly when the container is built and installs it.

    Will try to find time to have a play.

    Andy

  6. #16
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,418

    'Official' docker container for LMS?

    > Thanks for that info. In that case it should be relatively simple. Just
    > need a mechanism that queries for the latest nightly when the container
    > is built and installs it.


    In order to update you'd have to re-build the container? Or can it
    update itself?


    --

    Michael

  7. #17

    'Official' docker container for LMS?

    Just an idea - if you put the actual installation of LMS into a mapped directory, the updates could be done independent of the container.

    > On 24 Mar 2020, at 14:04, Michael Herger <slim (AT) herger (DOT) net> wrote:
    >
    >> Thanks for that info. In that case it should be relatively simple. Just
    >> need a mechanism that queries for the latest nightly when the container
    >> is built and installs it.

    >
    > In order to update you'd have to re-build the container? Or can it update itself?
    >
    >
    > --
    >
    > Michael
    >

  8. #18
    Senior Member
    Join Date
    Apr 2008
    Location
    Paris, France
    Posts
    2,239
    Quote Originally Posted by mherger View Post
    In order to update you'd have to re-build the container? Or can it
    update itself?
    It could, but that's "holding it wrong".
    In principle, an image is used to spawn a container, then you kill it or clone it, and the next container will be completely identical except for a few details like hostname, network parameters, etc.
    It is possible to commit live modifications made to a container to a new image, but the expected method would rather be to pull (from Docker Hub) a new image that is updated before launching the container:

    Quote Originally Posted by https://docs.docker.com/engine/reference/commandline/pull/
    When using tags, you can docker pull an image again to make sure you have the most up-to-date version of that image. For example, docker pull ubuntu:14.04 pulls the latest version of the Ubuntu 14.04 image.
    2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

  9. #19
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,418

    'Official' docker container for LMS?

    >> In order to update you'd have to re-build the container? Or can it
    >> update itself?

    > It could, but that's "holding it wrong".
    > In principle, an image is used to spawn a container, then you kill it or
    > clone it, and the next container will be completely identical except for
    > a few details like hostname, network parameters, etc.


    Are you saying that the image should be re-built regularly like other
    builds? The user would, instead of updating LMS in the container, update
    the container itself?

    --

    Michael

  10. #20
    Senior Member
    Join Date
    Apr 2008
    Location
    Paris, France
    Posts
    2,239
    Yes.
    (and the container/image would grow too fast anyway, the fs being layered )
    2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •