← 返回列表
全部 Skill›开发 Development›packaging-installers

packaging-installers

作者 @netdata · 语言 en
Change, review or troubleshoot Netdata kickstart, source installer, updater, Docker deployment helpers, or shared service and logrotate integration. Covers install/update/removal, persistent state and real lifecycle validation. Native package metadata and scriptlets use packaging-native-packages; static builds use packaging-static-installer; publication uses packaging-component-releases.
开发 Development包管理与发布通用执行命令读写文件待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
81,611
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Installer and deployment lifecycle

Use this skill for developer work on installation owners and their callers. Start with the requested route and

operation, then trace the shared helpers it uses. Read-only review uses source and existing evidence; it does not

run the installation procedures in linked operator docs. Action boundaries remain in AGENTS.md#skill-selection.

Choose the affected contract

| Task | Owners to inspect |

|---|---|

| Source installation or kickstart fallback | netdata-installer.sh, packaging/installer/kickstart.sh, packaging/installer/functions.sh |

| Scheduled/manual Agent updates | packaging/installer/netdata-updater.sh and the installer or package manager it invokes |

| Optional DEM pairing, offline inputs or repair | packaging/installer/netdata-dem-pair.sh, packaging/installer/DEM-RUNTIME.md#paired-agent-updates |

| Docker entrypoint, host setup or image replacement | packaging/docker/run.sh, packaging/docker/README.md#update-your-netdata-docker-container, packaging/installer/DEM-RUNTIME.md#docker-host-preparation |

| Shared service, IPC or log rotation | system/systemd/, system/logrotate/, system/install-service.sh.in, docs/netdata-agent/start-stop-restart.md#unix |

| DEB/RPM dependencies or package hooks | .agents/skills/packaging-native-packages/SKILL.md; this skill covers their shared installer/service callers |

| Static build, ELF checks or makeself artifact production | .agents/skills/packaging-static-installer/SKILL.md; this skill covers installation/update callers |

| Release identity, signing or public transport | .agents/skills/packaging-component-releases/SKILL.md; this skill covers installed lifecycle |

Trace ownership before changing behavior

  1. Map the complete path from entrypoint to installed helper and service. Record which account runs each step,

which paths it can traverse/execute, how arguments/environment survive privilege elevation, and how callers

interpret exit statuses. A root-only helper test does not prove access by the service account; a correct child

failure can still trigger the wrong caller cleanup or fallback. BusyBox hosts (Alpine static) have su but no

runuser; DEM pairing's root-to-service-account switch MUST fall back to

su -s /bin/sh -c 'exec "$0" "$@"' -- <user> env PATH="$PATH" ... (dem_pair_as_user) and be exercised on Alpine.

  1. Separate shipped content from retained configuration, data and runtime ownership records. Inspect the existing

cleanup and permission owners before changing them. Preserve preexisting prefixes on failed updates, including

symlinked prefixes; distinguish them from newly created partial installations. For static/source state boundaries,

use packaging/makeself/README.md#state-permissions-during-updates and its linked regression tests.

  1. Keep companion coordination around the normal installation owner. Determine the required failure/retry behavior

before adding rollback machinery; pairing alone does not require a second Agent installer or executable backup

framework. Use the documented DEM transaction and execution boundaries from the paired-update owner above.

  1. Trace service changes beyond the component hook. Changes to PID or IPC paths also affect logrotate,

installer/uninstaller and legacy service readers. Test custom accounts and IPC configuration when affected.

Directory ownership checks: .agents/skills/packaging-native-packages/SKILL.md#validate-at-the-relevant-layer.

For logrotate, verify a fresh record reaches the new inode without restarting the Agent or signalling

unrelated child processes.

  1. Treat the Docker image, persistent volumes and host policy as separate lifetimes. The DEM image supplies the

runtime as a preload. Inspect the image, service identity and mounts before evaluating an image replacement.

packaging/docker/README.md#enable-dem-in-docker owns deployment and updates.

packaging/installer/DEM-RUNTIME.md#docker-host-preparation owns policy setup. Preserve the service identity and

machine-ID mapping used by stored history.

Validate the affected path

  • Start with focused fixtures that execute shipped helpers and callers. Select by the behavior changed:

packaging/installer/tests/test_static_install_callers.py, packaging/installer/tests/test_dem_pair.py,

packaging/installer/tests/test_updater_dem.py, packaging/installer/tests/test_updater_artifacts.py, or

packaging/installer/tests/test_dem_runtime_host.py. Do not recreate the installer in a test or claim a fixture

establishes a full package transaction or real service restart.

  • For an authorized lifecycle test, use a disposable target with the relevant kernel/service policy. Record exact

artifact identities and distinguish public artifacts from locally modified candidates. Pin Docker image digests

when tags may move. Follow the user's normal installation/update entrypoint and retain its prerequisites.

  • Cover the affected transitions: fresh versus enrolled, running versus deliberately stopped, update/retry, and

removal/reinstallation. Check configuration/history and ordinary monitoring as well as the optional component.

A successful installer exit or active service is not sufficient: run a fresh workload through the installed

service account, and inspect errors during the observation window instead of waiting only for eventual success.

  • Preserve the target's security policy while diagnosing failures. Record actual process credentials, confinement

a

评论
Nnetdata
netdata
netdata/netdata
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@netdata
所属大类开发 Development / 包管理与发布
国内可用性通用
最近源活动—
风险提示执行命令、读写文件
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。