mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
✨ Add plugin support + virtual-circuit plugin
This commit is contained in:
parent
1d584be254
commit
a95adf68b6
@ -29,7 +29,9 @@ RUN pip install --prefix="/install" --no-warn-script-location \
|
|||||||
|
|
||||||
ARG NETBOX_PATH=.
|
ARG NETBOX_PATH=.
|
||||||
COPY ${NETBOX_PATH}/requirements.txt /
|
COPY ${NETBOX_PATH}/requirements.txt /
|
||||||
|
COPY ${NETBOX_PATH}/requirements.extras.txt /
|
||||||
RUN pip install --prefix="/install" --no-warn-script-location -r /requirements.txt
|
RUN pip install --prefix="/install" --no-warn-script-location -r /requirements.txt
|
||||||
|
RUN pip install --prefix="/install" --no-warn-script-location -r /requirements.extras.txt
|
||||||
|
|
||||||
FROM vaporio/python:3.7-slim
|
FROM vaporio/python:3.7-slim
|
||||||
|
|
||||||
|
@ -171,6 +171,11 @@ NAPALM_ARGS = {}
|
|||||||
# Determine how many objects to display per page within a list. (Default: 50)
|
# Determine how many objects to display per page within a list. (Default: 50)
|
||||||
PAGINATE_COUNT = int(os.environ.get('PAGINATE_COUNT', 50))
|
PAGINATE_COUNT = int(os.environ.get('PAGINATE_COUNT', 50))
|
||||||
|
|
||||||
|
# Plugins
|
||||||
|
PLUGINS = [
|
||||||
|
'netbox_virtual_circuit_plugin',
|
||||||
|
]
|
||||||
|
|
||||||
# When determining the primary IP address for a device, IPv6 is preferred over IPv4 by default. Set this to True to
|
# When determining the primary IP address for a device, IPv6 is preferred over IPv4 by default. Set this to True to
|
||||||
# prefer IPv4 instead.
|
# prefer IPv4 instead.
|
||||||
PREFER_IPV4 = os.environ.get('PREFER_IPV4', 'False').lower() == 'true'
|
PREFER_IPV4 = os.environ.get('PREFER_IPV4', 'False').lower() == 'true'
|
||||||
|
2
requirements.extras.txt
Normal file
2
requirements.extras.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
django-allauth==0.42.0
|
||||||
|
netbox-virtual-circuit-plugin==0.1.3
|
@ -1,5 +1,4 @@
|
|||||||
Django>=3.0,<3.1
|
Django>=3.0,<3.1
|
||||||
django-allauth==0.41.0
|
|
||||||
django-cacheops==4.2
|
django-cacheops==4.2
|
||||||
django-cors-headers==3.2.1
|
django-cors-headers==3.2.1
|
||||||
django-debug-toolbar==2.2
|
django-debug-toolbar==2.2
|
||||||
|
Loading…
Reference in New Issue
Block a user