* Updated imports for Netbox 3.6.1 Closes #21 and #23 * Changed Fieldtypes of Start and Expiration Date Closes #22 * Bump to NetBox v3.6.1 * Add pyproject.toml and python workflow --------- Co-authored-by: Manuel Hartung <manuel.hartung@atos.net>
18 lines
495 B
Docker
18 lines
495 B
Docker
ARG PYTHON_VERSION=3.10
|
|
FROM python:${PYTHON_VERSION}-alpine AS compile-image
|
|
|
|
WORKDIR /build
|
|
RUN python -m venv /opt/netbox/venv
|
|
ENV PATH="/opt/netbox/venv/bin:$PATH"
|
|
|
|
COPY ../ /build
|
|
|
|
RUN pip install -U .[build]
|
|
RUN python -m build
|
|
RUN pip install --no-index /build
|
|
|
|
FROM netboxcommunity/netbox:v3.6.1
|
|
|
|
ARG PYTHON_VERSION=3.10
|
|
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
|