Version bump to NetBox v4.2.3 and friends (#52)

Closes #51

Signed-off-by: wkoot <3715211+wkoot@users.noreply.github.com>
This commit is contained in:
wkoot
2025-02-11 20:41:03 +01:00
committed by GitHub
parent a0a98bb407
commit 87fdeb1c24
18 changed files with 385 additions and 367 deletions
+9 -8
View File
@@ -1,17 +1,18 @@
ARG PYTHON_VERSION=3.11
ARG PYTHON_VERSION=3.12
FROM python:${PYTHON_VERSION}-alpine AS compile-image
# Python version build arg is not actually supported by NetBox container image, only used for maintenance convenience
WORKDIR /build
RUN python -m venv /opt/netbox/venv
ENV PATH="/opt/netbox/venv/bin:$PATH"
RUN python3 -m venv /opt/netbox/venv &&\
source /opt/netbox/venv/bin/activate
COPY ../ /build
RUN pip install -U .[build]
RUN python -m build
RUN pip install --no-index /build
RUN pip install -U .[build] &&\
python -m build &&\
pip install --no-index /build
FROM netboxcommunity/netbox:v4.0.6
FROM netboxcommunity/netbox:v4.2.3
ARG PYTHON_VERSION=3.12
ARG PYTHON_VERSION=3.11
COPY --from=compile-image /opt/netbox/venv/lib/python${PYTHON_VERSION}/site-packages/netbox_slm /opt/netbox/venv/lib/python${PYTHON_VERSION}/site-packages/netbox_slm