netbox-docker icon indicating copy to clipboard operation
netbox-docker copied to clipboard

Simplify plugin installation

Open tobiasge opened this issue 1 year ago • 0 comments

Related Issue: -

New Behavior

Netbox plugins can now be mounted into the container and will be loaded automatically from the mounted path. A configuration file to enabled the plugin in has to be mounted additionally.

To install a plugin from outside the container you need to use the same Python version as is used in the container. At the moment that is Python 3.11. Assuming you are in the netbox-docker directory and using the default configuration, just run this command, to install the netbox-initializers plugin:

pip install --target=plugins netbox-initializers

This installation method will only work for plugins that don't need to collectstatic.

Contrast to Current Behavior

A new image has to be build, to install a plugin

Discussion: Benefits and Drawbacks

  • See above

Changes to the Wiki

  • Update plugins Wiki page

Proposed Release Note Entry

  • Install plugins via mounted path

Double Check

  • [x] I have read the comments and followed the PR template.
  • [x] I have explained my PR according to the information in the comments.
  • [x] My PR targets the develop branch.

tobiasge avatar Sep 06 '23 14:09 tobiasge