-
Sorry if my question is out of the project context, but what is your preferred way to develop the rest api. I tried to connect to the container after started all containers using dev version of the compose file, but I could not manage to debug. When I try to run the rest service locally and all other services using the compose file, my local rest server can not find airflow web server host because of the network settings in the compose file. I would like to hear how do you develop, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @tdari 1. Configuring python debugger within containers: This is a bit tricky and may require some time to configure but after configured it should work well without any additional changes. I use vscode and its debugger, so I had to configure it to make it work. 2. If you are developing a domino only feature: If you don't need to interact with airflow and other services you can always run your rest locally only and use the default debug mode. For that I'd recommend you to start just the domino database service and develop within these two services. This is the easiest but limited option. 3. Running all services in docker except rest: Like you said, the default configuration for the airflow client in the rest side and rest client in airflow side are the docker network services ips. If you look to Usually when I'm developing REST, most of the changes don't need interacting with airflow then I go on the option 2 because it is faster, easier and lighter. Anyway, all of them should work in their specific cases. |
Beta Was this translation helpful? Give feedback.
Hey @tdari
You have few options I would recommend.
1. Configuring python debugger within containers: This is a bit tricky and may require some time to configure but after configured it should work well without any additional changes. I use vscode and its debugger, so I had to configure it to make it work.
2. If you are developing a domino only feature: If you don't need to interact with airflow and other services you can always run your rest locally only and use the default debug mode. For that I'd recommend you to start just the domino database service and develop within these two services. This is the easiest but limited option.
3. Running all services in docker except rest: Like you sa…