[bug] Docker Compose version check in auto-install.sh fails on non-Debian systems (dpkg not found)

オープン 初心者向け
#771 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@shaneintentionboi06 がすでに取り組んでいます。

2026年11月20日 から。

  • #772 @shaneintentionboi06 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker-compose, shell
領域
devops

調査の方向性

deploy/auto-install.sh と tests/runtests.py にある失敗している4つのアップグレードテストから始めます。dpkg のない Linux システムでテストを実行して失敗を再現し、その後、スクリプトが Docker Compose のバージョンをどのように確認しているかを調べます。バージョン確認が dpkg なしで機能し、4つのテストすべてに合格すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

Describe the bug
tests/runtests.py upgrade tests fail on non-Debian systems because deploy/auto-install.sh uses dpkg --compare-versions to check the Docker Compose version. dpkg is Debian/Ubuntu-specific and isn't installed on distros like Arch or Fedora, so the check fails with dpkg: command not found, which the script misreports as "Docker Compose 2.33.1 or later is required."

Steps To Reproduce
Steps to reproduce the behavior:

  1. On a non-Debian system without dpkg installed, run make runtests.
  2. Observe the failing tests:
  • test_auto_install_upgrade_checks_compose_before_download
  • test_auto_install_upgrade_ignores_commented_settings
  • test_auto_install_upgrade_pulls_before_recreating_networks
  • test_auto_install_uses_selected_version

Expected behavior
The tests should pass on non-Debian systems too. The version check should use a tool available on all Linux distributions (e.g. sort -V) instead of dpkg, which is Debian/Ubuntu-specific.

System Information:

  • OS: Omarchy 4.5.0-3
  • Docker version: Docker version 29.9.2, build a82e528901
主要言語
Python
スター
207
フォーク
128
平均マージ
13時間 35分
マージ済み PR(30日)
38

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openwisp/docker-openwisp のほかの issue

openwisp/docker-openwisp の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。