Add dns plugin (#4)
* Another requirements file for pip to process * Install the plugins requirements alongside the other python modules * Build the netbox-plugin-dns plugin into our container images
This commit is contained in:
parent
2b38501a9f
commit
581acc0ae4
@ -29,7 +29,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \
|
|||||||
wheel
|
wheel
|
||||||
|
|
||||||
ARG NETBOX_PATH
|
ARG NETBOX_PATH
|
||||||
COPY ${NETBOX_PATH}/requirements.txt requirements-container.txt /
|
COPY ${NETBOX_PATH}/requirements.txt requirements-container.txt requirements-plugins.txt /
|
||||||
RUN \
|
RUN \
|
||||||
# We compile 'psycopg' in the build process
|
# We compile 'psycopg' in the build process
|
||||||
sed -i -e '/psycopg/d' /requirements.txt && \
|
sed -i -e '/psycopg/d' /requirements.txt && \
|
||||||
@ -41,7 +41,8 @@ RUN \
|
|||||||
sed -i -e 's/social-auth-core\[openidconnect\]/social-auth-core\[all\]/g' /requirements.txt && \
|
sed -i -e 's/social-auth-core\[openidconnect\]/social-auth-core\[all\]/g' /requirements.txt && \
|
||||||
/opt/netbox/venv/bin/pip install \
|
/opt/netbox/venv/bin/pip install \
|
||||||
-r /requirements.txt \
|
-r /requirements.txt \
|
||||||
-r /requirements-container.txt
|
-r /requirements-container.txt \
|
||||||
|
-r /requirements-plugins.txt
|
||||||
|
|
||||||
###
|
###
|
||||||
# Main stage
|
# Main stage
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# To learn how to build images with your required plugins
|
# To learn how to build images with your required plugins
|
||||||
# See https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins
|
# See https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins
|
||||||
|
|
||||||
# PLUGINS = ["netbox_bgp"]
|
PLUGINS = ["netbox_dns"]
|
||||||
|
|
||||||
# PLUGINS_CONFIG = {
|
# PLUGINS_CONFIG = {
|
||||||
# "netbox_bgp": {
|
# "netbox_bgp": {
|
||||||
|
1
requirements-plugins.txt
Normal file
1
requirements-plugins.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
netbox-plugin-dns
|
Reference in New Issue
Block a user