-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix building targeted service * fix issue with wrong loop * correct catalog startup * fixed api-server as well * fixed dynamic sidecar
- Loading branch information
Showing
19 changed files
with
61 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
services/api-server/src/simcore_service_api_server/__main__.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Main application to be deployed in for example uvicorn. | ||
""" | ||
from fastapi import FastAPI | ||
from simcore_service_api_server.core.application import init_app | ||
|
||
|
||
# SINGLETON FastAPI app | ||
the_app: FastAPI = init_app() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Main application to be deployed in for example uvicorn. | ||
""" | ||
from fastapi import FastAPI | ||
from simcore_service_catalog.core.application import init_app | ||
|
||
|
||
# SINGLETON FastAPI app | ||
the_app: FastAPI = init_app() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
services/director-v2/src/simcore_service_director_v2/__main__.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""Main application to be deployed in for example uvicorn. | ||
""" | ||
from fastapi import FastAPI | ||
from simcore_service_director_v2.core.application import init_app | ||
|
||
|
||
# SINGLETON FastAPI app | ||
the_app: FastAPI = init_app() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 3 additions & 26 deletions
29
services/dynamic-sidecar/src/simcore_service_dynamic_sidecar/main.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,8 @@ | ||
import sys | ||
from pathlib import Path | ||
"""Main application to be deployed in for example uvicorn. | ||
""" | ||
|
||
import uvicorn | ||
from fastapi import FastAPI | ||
from simcore_service_dynamic_sidecar.core.application import assemble_application | ||
from simcore_service_dynamic_sidecar.core.settings import DynamicSidecarSettings | ||
|
||
current_dir = Path(sys.argv[0] if __name__ == "__main__" else __file__).resolve().parent | ||
|
||
|
||
# SINGLETON FastAPI app | ||
app: FastAPI = assemble_application() | ||
|
||
|
||
def main() -> None: | ||
settings: DynamicSidecarSettings = app.state.settings | ||
|
||
uvicorn.run( | ||
"simcore_service_dynamic_sidecar.main:app", | ||
host=settings.host, | ||
port=settings.port, | ||
reload=settings.is_development_mode, | ||
reload_dirs=[ | ||
current_dir, | ||
], | ||
log_level=settings.log_level_name.lower(), | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |