-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supports debugging in Docker Compose for netbox-qrcode #78
Conversation
Supports debugging in Docker Compose
Hello @cruse1977, |
…ting Docker-compose. - Erweiterung der Dokumentation um die Orte wo die Anmeldedaten der Datenbank, PostgreSQL, Redis und Netbox zu finden sind. - Introduction of a development chapter. Slight adjustment of the chapter levels.
I have expanded it a little. When Docker-Compose is started, a user admin with the password admin is created for Netbox. |
… versteht welche Vorteile diese Datei hat. - Im Makefile wurde debug-vscode hinzugefügt. Um mit Brakepoints debuggen zu können. - README Development Part wurde nach dem neuen Wissensstand vereinfacht.
- Im Makefile wurden Kommentare hinzugefügt, damit ein neuling besser…
Ok, I didn't know about Makefile yet. I have therefore integrated my VSCode debugging with breakpoints into it:
Summary of the changes just now..:
|
I'm sorry, I've learned a lot in the last few days. But I'd say I'm done now. This extension is intended to help with the further development of the plugin. Summary of what has been done so far. In the README a chapter for developers was created to get a better start if someone wants to help. Makefile comments have been added and starting the VSCode debug mode. The following files were created to support debugging in VSCode with breakpoints: The following files were created to achieve the automatic creation of the admin SuperUser user for Netbox: The docker-compose.yml file has been adapted so that makesuperuser is also executed here. The makesuperuser.py script is built in such a way that it checks whether a SuperUser has been created. If not, it is created. So if you start the container again, there is no error message that there is already a user. I am therefore asking for a test now :D |
Unfortunately, I had transferred all my suggestions for improvement to my Master. As I now want to add a third improvement, this is slowly becoming too much. Therefore I will make three branges out of it. |
This request makes it possible to debug the netbox-qrcode environment in Visual Studio Code. I tried it months ago and now again. After a few days it finally worked. So please accept the pull request. As a lot of time has gone into this.
Thank you
Issues
#76