File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ARG NETBOX_VARIANT=v3.3
2
2
3
3
FROM netboxcommunity/netbox:${NETBOX_VARIANT}
4
4
5
- ARG NETBOX_INITIALIZERS_VARIANT=3.3.1
5
+ ARG NETBOX_INITIALIZERS_VARIANT=3.3.*
6
6
7
7
ARG DEBIAN_FRONTEND=noninteractive
8
8
Original file line number Diff line number Diff line change @@ -50,20 +50,20 @@ makemigrations:
50
50
migrate :
51
51
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH} migrate
52
52
53
- .PHONY : startup_scripts
54
- startup_scripts :
55
- -echo " import runpy; runpy.run_path('/opt/netbox/startup_scripts')" | ${NETBOX_MANAGE_PATH} shell --interface python
56
-
57
53
.PHONY : collectstatic
58
54
collectstatic :
59
55
-${VENV_PY_PATH} ${NETBOX_MANAGE_PATH} collectstatic --no-input
60
56
57
+ .PHONY : initializers
58
+ initializers :
59
+ -${VENV_PY_PATH} ${NETBOX_MANAGE_PATH} load_initializer_data --path /opt/netbox/netbox/netbox-acls/.devcontainer/initializers
60
+
61
61
.PHONY : start # # Start NetBox
62
62
start :
63
63
- cd /opt/netbox/netbox/ && /opt/netbox/docker-entrypoint.sh && /opt/netbox/launch-netbox.sh
64
64
65
65
.PHONY : all # # Run all PLUGIN DEV targets
66
- all : setup makemigrations migrate collectstatic start
66
+ all : setup makemigrations migrate collectstatic initializers start
67
67
68
68
# .PHONY: test
69
69
# test:
You can’t perform that action at this time.
0 commit comments