mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2026-03-22 08:16:54 +00:00
Refactor Dockerfile-plugins and docker-compose.override.yml to improve pip installation process and streamline image specification
This commit is contained in:
parent
c11718fce1
commit
76282d222f
|
|
@ -2,10 +2,10 @@
|
||||||
ARG FROM_TAG=v4.4-3
|
ARG FROM_TAG=v4.4-3
|
||||||
FROM ghcr.io/netbox-community/netbox:${FROM_TAG}-plugins
|
FROM ghcr.io/netbox-community/netbox:${FROM_TAG}-plugins
|
||||||
|
|
||||||
# Systemabhängigkeit: pip ins venv holen
|
# pip ins venv bringen und upgraden
|
||||||
RUN python -m ensurepip && \
|
RUN /opt/netbox/venv/bin/python -m ensurepip && \
|
||||||
/opt/netbox/venv/bin/python -m pip install --upgrade pip
|
/opt/netbox/venv/bin/python -m pip install --upgrade pip
|
||||||
|
|
||||||
# Plugins installieren
|
# Plugins beim Build installieren
|
||||||
COPY requirements-plugins.txt /plugins/requirements-plugins.txt
|
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
|
RUN /opt/netbox/venv/bin/python -m pip install --no-cache-dir -r /plugins/requirements-plugins.txt
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
|
||||||
|
x-netbox-image: &netbox_image netboxplugins:local
|
||||||
|
|
||||||
services:
|
services:
|
||||||
netbox:
|
netbox:
|
||||||
build:
|
build:
|
||||||
|
|
@ -5,7 +8,8 @@ services:
|
||||||
dockerfile: Dockerfile-plugins
|
dockerfile: Dockerfile-plugins
|
||||||
args:
|
args:
|
||||||
FROM_TAG: v4.4-3
|
FROM_TAG: v4.4-3
|
||||||
image: bboerni2/netbox:v4.4-3-plugins
|
image: *netbox_image
|
||||||
|
pull_policy: never
|
||||||
ports:
|
ports:
|
||||||
- "8000:8080"
|
- "8000:8080"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue