Skip to content

Getting Started

Khaled Hikmat edited this page Jun 6, 2021 · 1 revision

The easiest way to get started is to fork the reposiroty and create your own Azure resources using the provided Github action create-az-resources.yml to get your own storage and search service keys.

Once you create the required Azure resources, use the latest Docker image (in Docker Hub) to run a local image by passing the settings as env variables to the local image:

docker container run -it -p 8080:80 -e SEARCH_SVC_ENDPOINT=https://your-svs.search.windows.net -e SEARCH_SVC_API_KEY=your-key -e AzureWebJobsAzureWebJobsStorage="DefaultEndpointsProtocol=https;AccountName=your-name;AccountKey=your-key;EndpointSuffix=core.windows.net"  -e AzureWebJobsStorage="DefaultEndpointsProtocol=https;AccountName=your-name;AccountKey=your-key;EndpointSuffix=core.windows.net" khaledhikmat/goqur-functions:latest

Once this is done, you can use the manual Github action upload-ayahs-csv to upload a CSV to the blob storage. This will deposit a new CSV file in the blob which will trigger the Parser Function (runing inside the container) which will parse the file and upload its documents into the search service.

Clone this wiki locally