Access netbox models from netbox docker #1204
Unanswered
neharaina1771
asked this question in
Getting Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,
I wanted to use the netbox models from image (source code) from netbox docker
I created a bash file which in turn called python script containing the model queryset .
and ran the bash file from dockerfile .
I am getting permission denied for sh file although I have use RUN chmod +x 'path of bash file'
Also is there any better approch to achieve this . Basically that model queryset should create the custom field for Site and it should execute automatically once the container is up .
Once the container is up , it should execute the mana.py shell and then run the model queryset which should create the custom field
Beta Was this translation helpful? Give feedback.
All reactions