self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

the install.sh script does not check for the docker compose plugin

Open christopherowen opened this issue 8 months ago • 3 comments

Self-Hosted Version

25.5.0

CPU Architecture

x86_64

Docker Version

25.0.8

Docker Compose Version

v2.33.1

Machine Specification

  • [x] My system meets the minimum system requirements of Sentry

Steps to Reproduce

The install.sh script now depends on the docker compose plugin (as opposed to docker-compose), but does not check if it exists.

parts of the install.sh script like install/upgrade-clickhouse.sh will not function without this plugin installed.

Expected Result

At the beginning on the install.sh run, we check for things like:

▶ Checking minimum requirements ...
Found Docker version 25.0.8
Found Docker Compose version 2.36.1

We should add a check for the docker compose plugin as well

Actual Result

the scripts depending on docker compose will fail without the plugin installed.

Event ID

No response

christopherowen avatar May 19 '25 13:05 christopherowen

specifically, docker compose ps -a did not work on my system until I installed the docker compose plugin with the following steps:

#!/bin/bash
sudo mkdir -p /usr/local/lib/docker/cli-plugins

sudo curl -sL https://github.com/docker/compose/releases/latest/download/docker-compose-linux-"$(uname -m)" \
  -o /usr/local/lib/docker/cli-plugins/docker-compose

# Set ownership to root and make executable
test -f /usr/local/lib/docker/cli-plugins/docker-compose \
  && sudo chown root:root /usr/local/lib/docker/cli-plugins/docker-compose
test -f /usr/local/lib/docker/cli-plugins/docker-compose \
  && sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

christopherowen avatar May 19 '25 13:05 christopherowen

May I fix this one?

SinaVosooghi avatar May 22 '25 18:05 SinaVosooghi

May I fix this one?

@SinaVosooghi yes sure go ahead.

aldy505 avatar May 30 '25 02:05 aldy505