-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support NetBox plugins #173
Comments
@manusys64 Example of Dockerfile config : FROM netboxcommunity/netbox:v3.5.1
RUN . /opt/netbox/venv/bin/activate && \
pip install netbox-plugin-dns Add reference to the custom Dockerfile in Helm chart : image:
repository: YOUR_REPOSITORY
tag: "IMAGE_TAG"
plugins:
- netbox_dns |
I have tried to use this Dockerfile to build a custom image. FROM netboxcommunity/netbox:latest
RUN echo "netbox-secrets" >> requirements.txt && \
echo "netbox-secrets" >> local_requirements.txt \
echo "netbox-topology-views" >> requirements.txt && \
echo "netbox-topology-views" >> local_requirements.txt \
echo "netbox-bgp" >> requirements.txt && \
echo "netbox-bgp" >> local_requirements.txt
RUN . /opt/netbox/venv/bin/activate && pip install netbox-secrets netbox-topology-views netbox-bgp
RUN mkdir -p /opt/netbox/netbox/static/netbox_topology_views/img
SHELL ["/bin/bash", "-c"]
RUN echo $'\n\
PLUGINS = ["netbox_secrets", "netbox_bgp","netbox_topology_views"]\n\
PLUGINS_CONFIG = {\n\
\'netbox_topology_views\': {\n\
\'static_image_directory\': \'netbox_topology_views/img\',\n\
\'allow_coordinates_saving\': True,\n\
\'always_save_coordinates\': True\n\
}\n\
}' >> /opt/netbox/netbox/netbox/configuration.py
RUN SECRET_KEY="dummydummydummydummydummydummydummydummydummydummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input When I try to use the custom image in the Helm Chart I get
What am I doing wrong? When using the image in docker compose it works......... |
After an extensive study, I'm going to close this feature request.
This applies even more in a Kubernetes context. In a same deployment, a new pod is expected to be as equal as possible as another one. Adding an installation step breaks that rule, adds surface for errors and breakage. The recommended way to process is the one documented on NetBox container image wiki (and written above by @JevgenijsKonevs). With the use of Helm chart, the custom image build and use can be simplified to the following steps.
|
I would like to know if is possible to add custom plugins through helm chart?
I saw that in default values there are 2 variables related to plugins:
I have tried to add a plugin within plugin list variable like so:
but helm chart fail to deploy due to this error (which is legit)
So how we can install new plugins to NetBox deployed via helm chart?
Thank you and best regards!
The text was updated successfully, but these errors were encountered: