Skip to content
Snippets Groups Projects

extract base_app in separate module

Merged Alexandre Vincent requested to merge separate_base_app into master
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
40 40
41 41 USER appuser
42 42
43 CMD ["uvicorn", "app.wdms_app:base_app", "--host", "0.0.0.0", "--port", "8080"]
43 CMD ["uvicorn", "app.base:base_app", "--host", "0.0.0.0", "--port", "8080"]
  • Yannick resolved all threads

    resolved all threads

  • Yannick approved this merge request

    approved this merge request

  • Luc Yriarte approved this merge request

    approved this merge request

  • mentioned in commit 6f94027b

  • Hi @avincent2 , I can see that IBM int test is failing in this MR. First I checked behind this reason for failing IBM int test and I found that error in log that is coming Error loading ASGI app. Attribute "base_app" not found in module "app.wdms_app". I also checked code which is changed in this MR and I found that you have created new module which is base.py and you are defining base_app in base.py module but After changing all these thing I can see error in log which is "Error loading ASGI app. Attribute "base_app" not found in module "app.wdms_app"." . Need your help please suggest that Do I need to change anything in configuration side regarding changes in this MR? For your reference I have attached some screenshot. image image and also in one file I can see that "app.wdms_app:base_app" is using in entrypoint.sh file but it is not changed in this MR: image

    FYI @shrikgar

    Edited by Ashwani Pandey
  • HI @ashwani_pandey, Thank you for looking into this.

    Indeed the base_app FastAPI instance is now accessible in the app.base module. So I think the uvicorn command should be changed to uvicorn app.base:base_app ...

    On our side, we rely on the docker file, where you can see the change: https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/wellbore/wellbore-domain-services/-/blob/master/build/Dockerfile#L43

  • @avincent2 Thank you for your input.

    Edited by Ashwani Pandey
  • changed milestone to %M12 - Release 0.15

  • Please register or sign in to reply
    Loading