Refactor Dockerfile-plugins and docker-compose.override.yml to improve pip installation process and streamline image specification

This commit is contained in:
bboerni2 2025-09-23 17:02:44 +02:00
parent c11718fce1
commit 76282d222f
2 changed files with 8 additions and 4 deletions

View file

@ -2,10 +2,10 @@
ARG FROM_TAG=v4.4-3
FROM ghcr.io/netbox-community/netbox:${FROM_TAG}-plugins
# Systemabhängigkeit: pip ins venv holen
RUN python -m ensurepip && \
# pip ins venv bringen und upgraden
RUN /opt/netbox/venv/bin/python -m ensurepip && \
/opt/netbox/venv/bin/python -m pip install --upgrade pip
# Plugins installieren
# Plugins beim Build installieren
COPY requirements-plugins.txt /plugins/requirements-plugins.txt
RUN /opt/netbox/venv/bin/python -m pip install --no-cache-dir -r /plugins/requirements-plugins.txt

View file

@ -1,3 +1,6 @@
x-netbox-image: &netbox_image netboxplugins:local
services:
netbox:
build:
@ -5,7 +8,8 @@ services:
dockerfile: Dockerfile-plugins
args:
FROM_TAG: v4.4-3
image: bboerni2/netbox:v4.4-3-plugins
image: *netbox_image
pull_policy: never
ports:
- "8000:8080"
restart: unless-stopped