Commit 44782da3 authored by Yan Sushchynski (EPAM)'s avatar Yan Sushchynski (EPAM)
Browse files

Add anthos default params. Fix imports

parent 1d0751b7
Pipeline #110846 failed with stage
in 2 minutes and 52 seconds
......@@ -336,6 +336,20 @@ def cloud_provider_additional_environment(config: ConfigurationContainer):
override=True,
default='http://search/api/search')
if provider == 'anthos':
config.add_from_env(attribute_name='service_host_storage',
env_var_key='SERVICE_HOST_STORAGE',
description='Back-end for storage service',
is_mandatory=False,
override=True,
default='http://storage/api/storage')
config.add_from_env(attribute_name='service_host_search',
env_var_key='SERVICE_HOST_SEARCH',
description='Back-end for search service',
is_mandatory=False,
override=True,
default='http://search/api/search')
if provider == 'ibm':
config.add_from_env(attribute_name='default_data_tenant_project_id',
env_var_key='OS_WELLBORE_DDMS_DATA_PROJECT_ID',
......
......@@ -13,15 +13,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from osdu.core.api.storage.blob_storage_base import BlobStorageBase
from app.utils import Context
from app.bulk_persistence import resolve_tenant
from app.bulk_persistence.dask.dask_bulk_storage import DaskBulkStorage
from .app_injector import AppInjector, AppInjectorModule
from app.conf import Config
from app.context import Context
from app.tenant import resolve_tenant
from osdu.core.api.storage.blob_storage_base import BlobStorageBase
from osdu_anthos.storage.dask_storage_parameters import \
get_dask_storage_parameters as anthos_parameters
from osdu_anthos.storage.storage_anthos import AnthosStorage
from osdu_anthos.storage.dask_storage_parameters import get_dask_storage_parameters as anthos_parameters
from .app_injector import AppInjector, AppInjectorModule
class AnthosInjector(AppInjectorModule):
def configure(self, app_injector: AppInjector):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment