Updated Using Netbox Plugins (markdown)

Tobias Genannt 2025-02-06 07:20:24 +01:00
parent 0bfc7f2d67
commit 3cd247785e

@ -30,12 +30,12 @@ Put the following contents into that file.
FROM netboxcommunity/netbox:latest FROM netboxcommunity/netbox:latest
COPY ./plugin_requirements.txt /opt/netbox/ COPY ./plugin_requirements.txt /opt/netbox/
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /opt/netbox/plugin_requirements.txt RUN /usr/local/bin/uv pip install -r /opt/netbox/plugin_requirements.txt
# These lines are only required if your plugin has its own static files. # These lines are only required if your plugin has its own static files.
COPY configuration/configuration.py /etc/netbox/config/configuration.py COPY configuration/configuration.py /etc/netbox/config/configuration.py
COPY configuration/plugins.py /etc/netbox/config/plugins.py COPY configuration/plugins.py /etc/netbox/config/plugins.py
RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input RUN DEBUG="true" SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
``` ```
> NOTE: This `SECRET_KEY` is only used during the installation. There's no need to change it. > NOTE: This `SECRET_KEY` is only used during the installation. There's no need to change it.
@ -44,7 +44,6 @@ As its name implies, this file can contain configuration overrides for `docker-c
The absolute most basic configuration that you need is as follows. This tells our NetBox Worker and NetBox Housekeeping services to use our new custom image, `Dockerfile-Plugins` The absolute most basic configuration that you need is as follows. This tells our NetBox Worker and NetBox Housekeeping services to use our new custom image, `Dockerfile-Plugins`
```yaml ```yaml
version: '3.4' # This is NOT the version of NetBox! No need to adjust :)
services: services:
netbox: netbox:
image: netbox:latest-plugins image: netbox:latest-plugins