Docker Deployment, how do the img css and js static files get deployed? #527
-
I am running Netbox 4.0.6 in Docker and today I tried to get netbox-topology-views (4.0.0) running. I followed the mixed instructions here and on the netbox site to implement plugins in the container. So in the end I built my customized image that "seems" to run fine. On the first startup I could see, that the additional tables got created and I see the Topology Plugin in Netbox.
I docker exec into the netbox container and had a look at the /opt/netbox/netbox/static/netbox_topology_views folder and the only folder that is there is the img folder (it was part of the Dockerfile-Plugins build process, but it is empty. Also the css and js folders are missing. I could now bind mount those folders and populate them by downloading the content from GitHub manually, but I think that will cause issues in the future when the plugin changes. So I wonder where in the process of activating the plugin, those folders should be populated and by whom? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The only steps you need to follow are at https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins. You can try to fix it by entering the container and running: But this will only work until you re-create the container. |
Beta Was this translation helpful? Give feedback.
The only steps you need to follow are at https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins.
When building the container the files are copied to the correct location.
You can try to fix it by entering the container and running:
python3 manage.py collectstatic --no-input
But this will only work until you re-create the container.