Render the docs site per installation from /etc/default config instead of at package build time
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- debian, javascript, python
- 領域
- backend, devops, infrastructure
調査の方向性
Start by reading manager-control-program/Makefile, contrib/postinstall.sh, and the existing opensource-mcp systemd setup to understand the packaging pattern. Then trace the docs build and publish flow in mie-opensource-landing/main.py and scripts/publish_skill.py, along with the nginx configs named in the issue. Done means the package renders atomically with host config, preserves local settings on upgrades, and passes scripts/test_published_skill.py against rendered output.
索引モデルが issue の本文から書いたものです。
説明
Problem
The opensource-docs package ships HTML that was already rendered at package build time. Installation-specific values are fixed into it by mie-opensource-landing/main.py:
manager_url(envMANAGER_URL, defaulthttps://manager.os.mieweb.org) is used in about ten pages, includingusers/getting-started.md,users/mcp-server.md,users/creating-containers/command-line.mdandapi-keys.md.proxmox_url(envPROXMOX_URL, defaulthttps://os.mieweb.org:8006).
The release build never sets either variable, so every installation that installs the package from the APT repo shows MIE's Manager and Proxmox links.
#537 makes this more important. The homepage gets a Cluster Manager link, and the published deployment skill tells agents to use that link to choose where to sign in and send an API key. On another cluster, that link points agents at MIE's Manager.
#537 adds ARG MANAGER_URL to images/builder/Dockerfile, so an operator can build a separate docs package for their cluster. That works, but the docs package then differs per installation and can't be shared through the APT repo.
Proposal
Ship the docs source plus a oneshot systemd service that renders the site on the host, using values from a package config file. This follows the pattern opensource-mcp already uses: dependencies vendored into a build tree, a unit using EnvironmentFile=/etc/default/…, and contrib/postinstall.sh.
- Config:
/etc/default/opensource-docs, a package config file so local edits survive upgrades. Settings includeMANAGER_URLandPROXMOX_URL; an empty value uses the current default. - Service:
opensource-docs-build.servicewithType=oneshotandEnvironmentFile=-/etc/default/opensource-docs. It runszensical buildand thenscripts/publish_skill.py, using only the systempython3. - Dependencies: vendor
zensical,pyyamland their dependencies as prebuilt wheels for Debian 13 / amd64 / CPython 3.13, the same waymanager-control-program/Makefiledoes. Pinpython3in the package metadata to match. - When it runs:
postinstall.shruns it on install and upgrade when systemd is running.- An admin runs
systemctl restart opensource-docs-buildafter editing the config. - Optionally, an
opensource-docs-build.pathunit re-renders automatically when the config changes.
- Atomic publish: render into a temporary directory, then swap it into place, so nginx never serves a half-built site.
Design questions
- Where the rendered site lives. Today nginx serves
/opt/opensource-server/mie-opensource-landing/site, and those files belong to the package. If the service rewrites them, dpkg will overwrite or remove its changes on every upgrade. Options:- Render into a directory the package doesn't own, such as
/var/lib/opensource-docs/site, and point both nginx configs there:agent/templates/nginx.conf.ejs(docs server block) andimages/docs/docs-site.conf. - Or keep the old path as a symlink to the rendered directory.
- Render into a directory the package doesn't own, such as
- Fallback when systemd isn't running (image builds, chroots, containers without systemd). Either ship a default-rendered site as a fallback, or make the image builds render it explicitly.
- Where
MANAGER_URLcomes from on each host:- Manager image: could write it during first-boot setup, the way
images/manager/container-creator-init.servicewrites/etc/default/container-creator. - Docs image: could take it from the LXC environment, like the agent does.
- Don't copy the agent's
MANAGER_URL. It's documented as possibly an internal address (http://192.168.1.10:3000); this setting must be the public Manager origin.
- Manager image: could write it during first-boot setup, the way
- Values that differ per installation: the skill zip, its
sha256digest in/.well-known/agent-skills/index.json, andllms.txtwill differ per installation. That's expected; the tests inscripts/test_published_skill.pyshould run against the rendered output.
Acceptance criteria
- One
opensource-docspackage installs unchanged on any cluster. After settingMANAGER_URL/PROXMOX_URLin/etc/default/opensource-docsand running the service, every{{ manager_url }}/{{ proxmox_url }}link and the homepage Cluster Manager link point at that installation. - With no config, the rendered site matches today's MIE defaults.
- Upgrading the package keeps local config edits and re-renders without serving a partial site.
make dev/ compose keep working; they already passMANAGER_URLandPROXMOX_URLthrough the environment.- Afterwards, remove the
ARG MANAGER_URLbuild-time override fromimages/builder/Dockerfile, and the per-cluster build instructions frommie-opensource-landing/README.md(both added in #537).
- 主要言語
- JavaScript
- スター
- 10
- フォーク
- 6
- 平均マージ
- 5日 14時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mieweb/opensource-server のほかの issue
-
enhancement idle-shutdown
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
mieweb/opensource-server#531 ·
メンテナーはふだん 4 日以内に返信
-
enhancement idle-shutdown
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
mieweb/opensource-server#530 ·
メンテナーはふだん 4 日以内に返信
-
enhancement idle-shutdown
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
mieweb/opensource-server#529 ·
メンテナーはふだん 4 日以内に返信
-
enhancement idle-shutdown
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
mieweb/opensource-server#528 ·
メンテナーはふだん 4 日以内に返信
-
enhancement idle-shutdown
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
mieweb/opensource-server#527 ·
メンテナーはふだん 4 日以内に返信
mieweb/opensource-server の issue をすべて見る
似ている issue
-
Name the maintainers in CODEOWNERS対応中かも @TorecLuik が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
lbjlaq/Antigravity-Manager#4180 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
[workshop-sync] workshop/06-install-gh-aw.md: example version output is outdated (0.81.6 vs v1.2.2)オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
githubnext/gh-aw-workshop#6467 ·
メンテナーはふだん 1 日以内に返信