All checks were successful
Build and Push Docker Images / build (push) Successful in 6s
26 lines
1.0 KiB
Docker
26 lines
1.0 KiB
Docker
# =============================================================================
|
|
# NetBox Docker Image with Plugins
|
|
#
|
|
# Image NetBox personnalisée avec plugins pré-installés
|
|
# Basée sur l'image officielle netboxcommunity/netbox
|
|
# =============================================================================
|
|
|
|
ARG NETBOX_VERSION=latest
|
|
FROM netboxcommunity/netbox:${NETBOX_VERSION}
|
|
|
|
LABEL maintainer="Damien Arnodo"
|
|
LABEL description="NetBox with pre-installed plugins for homelab use"
|
|
|
|
# Copie du fichier de requirements des plugins
|
|
COPY plugin_requirements.txt /opt/netbox/
|
|
|
|
# Installation des plugins via uv pip (méthode officielle NetBox Docker)
|
|
RUN /usr/local/bin/uv pip install --no-cache -r /opt/netbox/plugin_requirements.txt
|
|
|
|
# Copie de la configuration des plugins
|
|
COPY plugins.py /etc/netbox/config/plugins.py
|
|
|
|
# NOTE: local_settings.py pour netbox-branching doit être monté au runtime
|
|
# via docker-compose pour configurer DynamicSchemaDict correctement.
|
|
# Voir: https://gitea.arnodo.fr/Damien/netbox-deployment
|