Set up continuous integration (#13)

Closes #3
This commit is contained in:
wkoot
2023-03-29 22:00:48 +02:00
committed by GitHub
parent a53486ca23
commit 1925be271a
18 changed files with 569 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
ARG PYTHON_VERSION=3.9
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 python setup.py sdist
RUN pip install --no-index /build
FROM netboxcommunity/netbox:v3.2.3
ARG PYTHON_VERSION=3.9
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