From 3cd247785e39712b407e0a407a727187fc020ce6 Mon Sep 17 00:00:00 2001 From: Tobias Genannt Date: Thu, 6 Feb 2025 07:20:24 +0100 Subject: [PATCH] Updated Using Netbox Plugins (markdown) --- Using-Netbox-Plugins.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Using-Netbox-Plugins.md b/Using-Netbox-Plugins.md index 49c2f75..127eb0d 100644 --- a/Using-Netbox-Plugins.md +++ b/Using-Netbox-Plugins.md @@ -30,12 +30,12 @@ Put the following contents into that file. FROM netboxcommunity/netbox:latest 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. COPY configuration/configuration.py /etc/netbox/config/configuration.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. @@ -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` ```yaml -version: '3.4' # This is NOT the version of NetBox! No need to adjust :) services: netbox: image: netbox:latest-plugins