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: 2 comments 9 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-input plugins.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.
I just tried building an images with the plugin and it worked with these files:
Dockerfile/Containerfile
plugins.py
local_settings.py