Skip to content

feat(dev): develop this add-on inside a locally-run Portainer [R8S-1167] - #79

Open
RHCowan wants to merge 1 commit into
developfrom
feat/R8S-1167/addon-local-dev
Open

feat(dev): develop this add-on inside a locally-run Portainer [R8S-1167]#79
RHCowan wants to merge 1 commit into
developfrom
feat/R8S-1167/addon-local-dev

Conversation

@RHCowan

@RHCowan RHCowan commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Wire portainer-run into the local add-on dev loop documented in the
reference add-on (portal-template/docs/developing-inside-portainer.md), which runs a
Portainer server inside a real local cluster and serves this add-on through
the production gateway.

  • VITE_DEV_PORT moves the Vite dev server and its matching HMR clientPort,
    so live reload works across the split origin (page on :8999, Vite here)
    and this add-on can run alongside others.
  • image.pullPolicy is now a chart value (still defaulting to Always), so a
    locally-built image loaded onto the cluster's nodes runs without a
    registry when set to IfNotPresent/Never via DEV_ADDON_VALUES.
  • bun run redeploy builds, loads onto the cluster's nodes (auto-detecting
    kind / minikube / k3d / k3s / microk8s / a runtime shared with the host)
    and rollout-restarts the Deployment. It resolves the tag from
    dev-values.yaml, since rollout restart never changes a pod's image spec
    and a mismatch would silently ignore the rebuild.
  • dev-values.yaml.example is the starting point for the values file (including
    how to reach the host-run Portainer, which differs per cluster); the copy is
    gitignored, since it holds per-developer image tags and URLs.

Wire portainer-run into the local add-on dev loop documented in the
reference add-on (portal-template/docs/developing-inside-portainer.md), which runs a
Portainer server inside a real local cluster and serves this add-on through
the production gateway.

- VITE_DEV_PORT moves the Vite dev server and its matching HMR clientPort,
  so live reload works across the split origin (page on :8999, Vite here)
  and this add-on can run alongside others.
- image.pullPolicy is now a chart value (still defaulting to Always), so a
  locally-built image loaded onto the cluster's nodes runs without a
  registry when set to IfNotPresent/Never via DEV_ADDON_VALUES.
- `bun run redeploy` builds, loads onto the cluster's nodes (auto-detecting
  kind / minikube / k3d / k3s / microk8s / a runtime shared with the host)
  and rollout-restarts the Deployment. It resolves the tag from
  dev-values.yaml, since `rollout restart` never changes a pod's image spec
  and a mismatch would silently ignore the rebuild.
- dev-values.yaml.example is the starting point for the values file (including
  how to reach the host-run Portainer, which differs per cluster); the copy is
  gitignored, since it holds per-developer image tags and URLs.
@linear

linear Bot commented Aug 3, 2026

Copy link
Copy Markdown

R8S-1167

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Note

PR image published: portainerci/portainer-run:pr-79

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