Skip to content

Commit e60458e

Browse files
authored
Merge pull request #18 from netboxlabs/develop
🚚 release
2 parents f24705c + 508915e commit e60458e

File tree

13 files changed

+115
-121
lines changed

13 files changed

+115
-121
lines changed

β€ŽMakefileβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ docker-compose-netbox-plugin-down:
1414

1515
.PHONY: docker-compose-netbox-plugin-test
1616
docker-compose-netbox-plugin-test:
17-
-@$(DOCKER_COMPOSE) -f docker/docker-compose.yaml -f docker/docker-compose.test.yaml run -u root --rm netbox ./manage.py test --keepdb netbox_diode_plugin
17+
-@$(DOCKER_COMPOSE) -f docker/docker-compose.yaml run -u root --rm netbox ./manage.py test --keepdb netbox_diode_plugin
1818
@$(MAKE) docker-compose-netbox-plugin-down
1919

2020
.PHONY: docker-compose-netbox-plugin-test-cover
2121
docker-compose-netbox-plugin-test-cover:
22-
-@$(DOCKER_COMPOSE) -f docker/docker-compose.yaml -f docker/docker-compose.test.yaml run --rm -u root -e COVERAGE_FILE=/opt/netbox/netbox/coverage/.coverage netbox sh -c "coverage run --source=netbox_diode_plugin ./manage.py test --keepdb netbox_diode_plugin && coverage xml -o /opt/netbox/netbox/coverage/report.xml && coverage report -m | tee /opt/netbox/netbox/coverage/report.txt"
22+
-@$(DOCKER_COMPOSE) -f docker/docker-compose.yaml run --rm -u root -e COVERAGE_FILE=/opt/netbox/netbox/coverage/.coverage netbox sh -c "coverage run --source=netbox_diode_plugin ./manage.py test --keepdb netbox_diode_plugin && coverage xml -o /opt/netbox/netbox/coverage/report.xml && coverage report -m | tee /opt/netbox/netbox/coverage/report.txt"
2323
@$(MAKE) docker-compose-netbox-plugin-down

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ export DIODE_API_KEY=$(head -c20 </dev/urandom|xxd -p); env | grep DIODE_API_KEY
6868

6969
**Note:** store these API key strings in a safe place as they will be needed later to configure the Diode server
7070

71-
Configure the plugin to use the previously generated API keys:
71+
Run migrations to create all necessary resources:
7272

7373
```shell
7474
cd /opt/netbox/netbox
75-
./manage.py configurediodeplugin
75+
./manage.py migrate netbox_diode_plugin
7676
```
7777

7878
## Running Tests

β€Ždocker/Dockerfile-diode-netbox-pluginβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ COPY ./netbox/configuration/ /etc/netbox/config/
44
RUN chmod 755 /etc/netbox/config/* && \
55
chown unit:root /etc/netbox/config/*
66

7-
COPY ./netbox/enable-diode-plugin.sh /opt/netbox/enable-diode-plugin.sh
8-
97
COPY ./requirements-diode-netbox-plugin.txt /opt/netbox/
108
RUN /opt/netbox/venv/bin/pip install --no-warn-script-location -r /opt/netbox/requirements-diode-netbox-plugin.txt

β€Ždocker/docker-compose.test.yamlβ€Ž

Lines changed: 0 additions & 5 deletions
This file was deleted.

β€Ždocker/netbox/configuration-test/plugins.pyβ€Ž

Lines changed: 0 additions & 13 deletions
This file was deleted.

β€Ždocker/netbox/configuration/plugins.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# To learn how to build images with your required plugins
55
# See https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins
66

7-
# PLUGINS = ["netbox_diode_plugin"]
7+
PLUGINS = ["netbox_diode_plugin"]
88

99
# PLUGINS_CONFIG = {
1010
# "netbox_diode_plugin": {

β€Ždocker/netbox/enable-diode-plugin.shβ€Ž

Lines changed: 0 additions & 9 deletions
This file was deleted.

β€Ždocker/netbox/launch-netbox.shβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ reload_netbox() {
6262

6363
load_configuration &
6464

65-
sh /opt/netbox/enable-diode-plugin.sh &
66-
6765
reload_netbox &
6866

6967
exec unitd \

β€Žnetbox_diode_plugin/management/__init__.pyβ€Ž

Lines changed: 0 additions & 3 deletions
This file was deleted.

β€Žnetbox_diode_plugin/management/commands/__init__.pyβ€Ž

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
Β (0)