Skip to content

docs: describe the single binary and plugin sideloading - #837

Open
klesh wants to merge 2 commits into
mainfrom
docs/single-binary-plugins
Open

klesh wants to merge 2 commits into
mainfrom
docs/single-binary-plugins

Conversation

@klesh

@klesh klesh commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Documents the packaging change tracked in apache/devlake#9276: DevLake ships as one lake binary containing the framework, the API and every official plugin, and a deployed binary still loads extra .so plugins from PLUGIN_DIR.

Three files:

  • docs/DeveloperManuals/DeveloperSetup.md — the "Compiling" section was indented four spaces, so it rendered as a code block, and it documented two things that do not exist: PLUGIN=<name> (the variable is DEVLAKE_PLUGINS) and make build-worker. Rewritten for the single-binary default, with the DEVLAKE_PLUGINS subset and make build-plugin paths. A new "Sideloading plugins" section explains where the .so files go, why they must be built with the matching toolchain, and that a plugin that fails to load is skipped instead of taking the server down.
  • docs/GettingStarted/Environment.md — new PLUGIN_DIR entry: default value, the container mount path (/app/bin/plugins), the skip-on-failure behaviour and the override warning.
  • docs/GettingStarted/DockerComposeSetup.md — FAQ entry showing the compose volume that sideloads a plugin into the image, since adding a plugin no longer means rebuilding the image.

Dependency (merge after the implementation)

The behaviour described here lands in two devlake PRs:

Merge this once those land, so the site does not describe commands the released binaries lack.

Does this close any open issues?

Refs apache/devlake#9276.

klesh added 2 commits October 31, 2026 11:59
`make build` now produces one `bin/lake` with the framework, the API and
every official plugin compiled in, and a deployed binary still loads
extra `.so` plugins from PLUGIN_DIR.

- Rewrite the "Compiling" section, which was rendered as a code block and
  documented two things that do not exist: `PLUGIN=<name>` (the variable is
  DEVLAKE_PLUGINS) and `make build-worker`.
- Add a "Sideloading plugins" section: where the .so files go, why they
  must be built with the matching toolchain, and that a plugin which fails
  to load is skipped rather than taking the server down.
- Document PLUGIN_DIR in the environment variables reference, including the
  container mount path and the override warning.
The image ships one binary with every official plugin, so adding a plugin
means mounting a directory over /app/bin/plugins rather than rebuilding it.
Adds an FAQ entry with the compose snippet, the naming/override rule and the
"build it in the matching lake-builder image" constraint.
@klesh
klesh marked this pull request as ready for review October 31, 2026 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant