Open 1v4N00 opened 1 year ago
Hey, had the same problem. My solution was to change the Dockerfile:
ARG FROM_IMAGE=netboxcommunity/netbox
ARG FROM_TAG=latest
ARG FROM=${FROM_IMAGE}:${FROM_TAG}
FROM ${FROM}
ENV VIRTUAL_ENV=/opt/netbox/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY ./nextbox_ui_plugin /source/nextbox-ui-plugin/nextbox_ui_plugin/
COPY ./setup.py /source/nextbox-ui-plugin/
COPY ./MANIFEST.in /source/nextbox-ui-plugin/
COPY ./README.md /source/nextbox-ui-plugin/
COPY --chmod=775 ./nextbox_ui_plugin/static/nextbox_ui_plugin /opt/netbox/netbox/static/nextbox_ui_plugin
RUN pip3 install --no-cache-dir nextbox-ui-plugin
Same problem here, had to change the permissions in order for the plugin to work. Rather than 775
i used COPY --chmod=655
Hi all, I encountered a problem in using the plugin, in this case it concerns permissions on the static files, I wanted to ask if it turns out to be an already known problem or something new for you as well. I leave below some logs:
below the permissions status of the files giving problems in the running container:
Is this something that can be solved by forcing the correct permissions by editing the Dockerfile?
RUN chmod -R 777 /opt/netbox/netbox/static/nextbox_ui_plugin