jbparrish17 / netbox-static-routes

Manage static routes with Netbox
Apache License 2.0
24 stars 7 forks source link

install in a Docker container #6

Open ArminRadmueller opened 1 year ago

ArminRadmueller commented 1 year ago

I'm trying to install the plugin in a Netbox Docker container and I'm running the following commands in the Dockerfile. The installation seems to work, but when I start it I get the error "LookupError: No installed app with label 'netbox_static_routes'.

RUN cd /opt/netbox/netbox && git clone https://github.com/jbparrish17/netbox-static-routes && \
    /bin/bash -c "source /opt/netbox/venv/bin/activate && cd netbox-static-routes && python3 setup.py develop"

What could be the problem here?

andyb2000 commented 1 year ago

Did you find a solution to this? I cannot get the plugin to install/work as constantly get netbox_static_routes (non-docker install) no installed app

May 09 12:02:48 python3[124068]: raise LookupError(message) May 09 12:02:48 python3[124068]: LookupError: No installed app with label 'netbox_static_routes'.

MichiMeyer commented 8 months ago

This worked for me:

For latest version:

mkdir plugins
git clone https://github.com/jbparrish17/netbox-static-routes.git

update configuration/plugins.py Update Dockerfile-Plugins See: Doku

/opt/netbox/venv/bin/pip install -v --no-cache-dir --no-warn-script-location /plugins/netbox-static-routes/

apply #7, adjust version ~