Skip to content

Commit

Permalink
fix: install of netbox-attachments plugin using non standardised nami…
Browse files Browse the repository at this point in the history
…ng convention
  • Loading branch information
i0n committed Jun 25, 2024
1 parent 1fd91c8 commit 332daf7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dockerfiles/netbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM netboxcommunity/netbox:v4.0.6@sha256:e4813edc83d5330214b9b12140f7a4250a1f10daef2ef324f3b42b42bcc9b1ac

RUN echo "netbox-attachments" >> requirements.txt && \
echo "netbox-attachments" >> local_requirements.txt
RUN echo "netbox_attachments" >> /opt/netbox/plugin_requirements.txt

RUN . /opt/netbox/venv/bin/activate && \
pip install netbox-attachments
RUN /opt/netbox/venv/bin/pip install netbox-attachments

RUN echo "PLUGINS = ['netbox-attachments']" >> /opt/netbox/netbox/netbox/configuration.py
RUN echo "PLUGINS = ['netbox_attachments']" >> /opt/netbox/netbox/netbox/configuration.py

0 comments on commit 332daf7

Please sign in to comment.