Skip to content

fix(server): improve debian-like detection and alpine install flow#8485

Closed
1312e wants to merge 2 commits intocoollabsio:nextfrom
1312e:algora-server-os-fix
Closed

fix(server): improve debian-like detection and alpine install flow#8485
1312e wants to merge 2 commits intocoollabsio:nextfrom
1312e:algora-server-os-fix

Conversation

@1312e
Copy link
Copy Markdown

@1312e 1312e commented Feb 20, 2026

Changes

  • Improve server OS detection by adding an ID_LIKE fallback path in Server::resolveSupportedOsType so Debian-family derivatives can be detected reliably.
  • Add Alpine support to prerequisite installation (apk update + required packages).
  • Add Alpine Docker installation/startup flow with OpenRC-compatible commands.
  • Make Docker enable/restart logic resilient across systemctl, rc-service, and service based systems.
  • Add focused unit tests for OS resolution fallback and Alpine Docker install command generation.

Issues

  • fixes:

Category

  • Bug fix

Screenshots or Video (if applicable)

  • N/A (no UI changes)

AI Usage

  • AI is used in the process of creating this PR

Steps to Test

  • Step 1 – Run php -l app/Models/Server.php app/Actions/Server/InstallPrerequisites.php app/Actions/Server/InstallDocker.php and verify there are no syntax errors.
  • Step 2 – Run php -l tests/Unit/ServerResolveSupportedOsTypeTest.php tests/Unit/Actions/Server/InstallDockerAlpineCommandTest.php.
  • Step 3 – Execute the unit tests in a full local setup and verify OS fallback and Alpine install command assertions pass.

Contributor Agreement

Important

  • I have read and understood the contributor guidelines. If I have failed to follow any guideline, I understand that this PR may be closed without review.
  • I have tested the changes thoroughly and am confident that they will work as expected without issues when the maintainer tests them

@gitguardian
Copy link
Copy Markdown

gitguardian bot commented Feb 20, 2026

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
While these secrets were previously flagged, we no longer have a reference to the
specific commits where they were detected. Once a secret has been leaked into a git
repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@1312e
Copy link
Copy Markdown
Author

1312e commented Feb 20, 2026

更正(上条评论被 shell 转义污染,这条为准):

  • php -l app/Models/Server.php app/Actions/Server/InstallDocker.php app/Actions/Server/InstallPrerequisites.php 全通过
  • php -l tests/Unit/ServerResolveSupportedOsTypeTest.php tests/Unit/Actions/Server/InstallDockerAlpineCommandTest.php 全通过
  • 最新 head 的 GitGuardian: completed/success
  • 本地审计记录:reports/algora-quality/20260220-144541-pr-evidence/summary.md

说明:本 PR 为 server 修复项,不属于 one-click service 文档范围。

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants