Add docker-compose

Hello,

Can you add docker-compose?

I use an Odroid N2 and Kodi works almost perfectly in CoreELEC.

I also want to run other software but Kodi is useless in Ubuntu.

With docker-compose loading other software would be much easier.
Not to mention maintenance would be easier.

Thanks.

1 Like

plus one on this, would be great

A workaround is to run docker-compose through a docker :slight_smile:

Instructions:
mkdir /storage/bin
curl -L --fail https://raw.githubusercontent.com/linuxserver/docker-docker-compose/master/run.sh -o /storage/bin/docker-compose
chmod +x /storage/bin/docker-compose
cp /etc/profile /storage/.profile
echo “export PATH=/storage/bin/:$PATH” >> /storage/.profile

4 Likes

you can install docker-compose via pip from entware

opkg install python3-pip

pip3 install docker-compose

1 Like

Fantastic! you have made the task of installing ‘streamlink’ in CoreELEC very very easy (command: pip3 install streamlink) and being able to prepare playlists for the ‘tvheadend’ server and expand the power of this server that until now was only capable of reading television sources . As of now, using ‘ffmpeg’ or ‘streamlink’, ‘tvheadend’ is already able to read anything (youtube, twitch, …).

streamlink good service yes. work better than ffmpeg in tvheadend

https://cgomesu.com/blog/Tvhlink/#streamlink

1 Like

Hello:

I tried to install docker-compose with pip3;

# pip3 install docker-compose
Collecting docker-compose
  Using cached docker_compose-1.29.2-py2.py3-none-any.whl.metadata (4.7 kB)
Collecting PyYAML<6,>=3.10 (from docker-compose)
  Using cached PyYAML-5.4.1.tar.gz (175 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [49 lines of output]
      running egg_info
      writing lib3/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib3/PyYAML.egg-info/top_level.txt
      Traceback (most recent call last):
        File "/opt/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
        File "/opt/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
        File "/opt/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 271, in <module>
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 183, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
          dist.run_commands()
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
          self.run_command(cmd)
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 995, in run_command
          super().run_command(command)
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
          cmd_obj.run()
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 313, in run
          self.find_sources()
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 321, in find_sources
          mm.run()
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 544, in run
          self.add_defaults()
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/command/egg_info.py", line 582, in add_defaults
          sdist.add_defaults(self)
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/command/sdist.py", line 109, in add_defaults
          super().add_defaults()
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 238, in add_defaults
          self._add_defaults_ext()
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/sdist.py", line 323, in _add_defaults_ext
          self.filelist.extend(build_ext.get_source_files())
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<string>", line 201, in get_source_files
        File "/storage/.opt/tmp/pip-build-env-cmxe5wft/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__
          raise AttributeError(attr)
      AttributeError: cython_sources
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Any alternative to install it (CoreELEC 21.1.1-ng)?

Kind regards


curl -SL https://github.com/docker/compose/releases/download/v2.31.0/docker-compose-linux-armv7 -o docker-compose
chmod +x docker-compose
./docker-compose -v
1 Like

Thanks. It seems it works :rofl: :pray:

If I were using CoreElec-ne, would I need the aarch64 version (https://github.com/docker/compose/releases/download/v2.31.0/docker-compose-linux-aarch64) or would I still be using armv7?

I think aarch64 is needed for NE and NO version.