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:
+9
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user