All checks were successful
Build and Push Docker Images / build (push) Successful in 7s
30 lines
1.3 KiB
Docker
30 lines
1.3 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
|
|
|
|
# Copie de local_settings.py pour netbox-branching (DynamicSchemaDict)
|
|
# Doit être dans /etc/netbox/config/ pour être chargé par netbox-docker
|
|
COPY local_settings.py /etc/netbox/config/local_settings.py
|
|
|
|
# NOTE: collectstatic est skippé au build car certains plugins (netbox_branching)
|
|
# nécessitent une configuration runtime complète (DATABASES avec DynamicSchemaDict).
|
|
# Les assets statiques seront collectés automatiquement au premier démarrage du container.
|