All checks were successful
Build and Push Docker Images / build (push) Successful in 30s
netbox_branching requires DynamicSchemaDict for DATABASES which cannot be configured at build time. Static assets will be collected at container startup instead.
26 lines
1.1 KiB
Docker
26 lines
1.1 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: 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.
|