-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
APP_VERSION = 'custom' | ||
VERSION = '1.0.0' | ||
|
||
|
||
def get_version_details() -> dict: | ||
""" | ||
This is basically a stub which will be used in middleware to get version details of custom app | ||
""" | ||
return { | ||
'app_metadata': { | ||
'name': 'custom-app', | ||
'train': 'stable', | ||
'version': VERSION, | ||
'app_version': APP_VERSION, | ||
'title': 'Custom App', | ||
'description': 'This is a custom app where user can use his/her ' | ||
'own docker compose file for deploying services', | ||
'home': '', | ||
'sources': [], | ||
'maintainers': [], | ||
'run_as_context': [], | ||
'capabilities': [], | ||
'host_mounts': [], | ||
}, | ||
'version': VERSION, | ||
'human_version': f'{VERSION}_{APP_VERSION}', | ||
'supported': True, | ||
'healthy': True, | ||
'healthy_error': None, | ||
} |