Netbox-branching getting to work? #1316
-
|
anyone able to get it to work? Tried coping in the settings but it keeps not working.´ |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
|
I am on the same boat as you are. The issue is on the run of manage.py collectstatic and the the 2nd line of the python file local_settings.py that is said on the plugin instructions to include. I tried to buid the image without the running manage.py collectstatic and I try to execute the command directly on the running netbox container but that way I get permission denied errors: Maybe an Issue should be opened. |
Beta Was this translation helpful? Give feedback.
-
|
I just tried building an images with the plugin and it worked with these files: Dockerfile/Containerfile FROM quay.io/netboxcommunity/netbox:v4.1
COPY plugins.py /etc/netbox/config/plugins.py
COPY local_settings.py /opt/netbox/netbox/netbox/local_settings.py
RUN /opt/netbox/venv/bin/pip install netboxlabs-netbox-branching
RUN SECRET_KEY="dummyKeyWithMinimumLength-------------------------" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-inputplugins.py PLUGINS = [
'netbox_branching',
]local_settings.py from netbox_branching.utilities import DynamicSchemaDict
from .configuration import DATABASE
# Wrap DATABASES with DynamicSchemaDict for dynamic schema support
DATABASES = DynamicSchemaDict({
'default': DATABASE,
})
# Employ our custom database router
DATABASE_ROUTERS = [
'netbox_branching.database.BranchAwareRouter',
] |
Beta Was this translation helpful? Give feedback.
-
|
Hi team, Beginning with NetBox 4.3 the configuration changes must be performed directly in the There is no longer the The up to date plugin docs are here: https://github.com/netboxlabs/netbox-branching/ So I got this to work by doing the changes in the FROM netboxcommunity/netbox:latest
COPY ./plugin_requirements.txt /opt/netbox/
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
RUN DEBUG="true" SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" \
/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-inputEverything else is correct ( However, this is a dirty hack, because the I guess a good approach would be, that the netbox-docker team considers this in the repository |
Beta Was this translation helpful? Give feedback.
I just tried building an images with the plugin and it worked with these files:
Dockerfile/Containerfile
plugins.py
local_settings.py