netbox-topology-views icon indicating copy to clipboard operation
netbox-topology-views copied to clipboard

Installation for Netbox Docker

Open compgeniuses opened this issue 3 years ago • 2 comments

How can this plugin be installed on a Netbox Docker installation. it seems to assume all installations are non dockerized.

compgeniuses avatar Apr 28 '22 08:04 compgeniuses

See the documentation from netbox-docker

mattieserver avatar Apr 28 '22 08:04 mattieserver

@compgeniuses In essence it boils down to build a new container, based on the official image, but installing the plugin:

FROM ghcr.io/netbox-community/netbox
RUN set -x \
  && source /opt/netbox/venv/bin/activate \
  && SITEDIR=$(/opt/netbox/venv/bin/python3 -c 'import site; print(site.getsitepackages()[0])') \
  && pip install netbox-topology-views \
  && cp -r $SITEDIR/netbox_topology_views/static/netbox_topology_views /opt/netbox/netbox/static/ \
  && true

I did this very thing in https://github.com/klaernie/netbox-docker/ For my personal convenience I build it all directly using github actions and push the finished image to github's registry.

klaernie avatar May 22 '22 11:05 klaernie