Skip to content

heaprip/dvc-backend

Repository files navigation

How to setup project

Init Azure function

func init --python

Up local Blob storage and other stuff

docker compose up -d

For run local Azure function:

func start host

For run Uvicorn

uvicorn function_app:fastapi_app --port=8888

Settings

Project have mock version for OAuth2 Authorization - You just need to pass additional env variables:

  • MOCK_AUTH - True/False - by default False
  • MOCK_AUTH_GROUP - "root" or None - by default None

Example env file

GOOGLE_CLIENT_ID=<your_google_oauth_client_id>
MS_CLIENT_ID=<your_ms_oauth_client_id>
MS_JWKS_URL=<your_specified_keys_url> or https://login.microsoftonline.com/common/discovery/v2.0/keys
MONGO_DSN=mongodb://root:password@localhost:27017
DATABASE_NAME=SourceDatabase
AzureWebJobsStorage=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;QueueEndpoint=http://127.0.0.1:10001/devstoreaccount1;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1;
BLOB_STORAGE_CONTAINER_NAME=<storage_container_name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •