Assorted fixes (#25)
* 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>
This commit is contained in:
+3
-2
@@ -7,10 +7,11 @@ ENV PATH="/opt/netbox/venv/bin:$PATH"
|
||||
|
||||
COPY ../ /build
|
||||
|
||||
RUN python setup.py sdist
|
||||
RUN pip install -U .[build]
|
||||
RUN python -m build
|
||||
RUN pip install --no-index /build
|
||||
|
||||
FROM netboxcommunity/netbox:v3.4.7
|
||||
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
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM netboxcommunity/netbox:v3.4.7
|
||||
FROM netboxcommunity/netbox:v3.6.1
|
||||
|
||||
RUN mkdir /ci && chmod go+w /ci
|
||||
COPY ../ci/requirements_ci.txt /ci/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
PLUGINS = ['netbox_slm']
|
||||
DEBUG = True
|
||||
SECRET_KEY = 'dummy'
|
||||
SECRET_KEY = 'dummydummydummydummydummydummydummydummydummydummy'
|
||||
DEVELOPER = True
|
||||
PLUGINS_CONFIG = {
|
||||
'netbox_slm': dict(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
version: '3.7'
|
||||
services:
|
||||
netbox: &netbox
|
||||
image: netboxcommunity/netbox:${VERSION-v3.3-2.2.0}
|
||||
image: netboxcommunity/netbox:${VERSION-v3.6.1}
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
|
||||
Reference in New Issue
Block a user