Build and customize options#

This guide provides build from source and specific customization options provided when building or deploying the microservice.

Manually setup environment variables#

Following environment variables are required for setting up the services. It is recommended that the runner script run.sh be used to setup the variables. Refer to this section only if any of the variables need to be changed.

Project name:#

  • PROJECT_NAME: Helps provide a common docker compose project name and create a common container prefix for all services involved.

Secrets and token variables#

  • HUGGINGFACEHUB_API_TOKEN: This is the token required for running Huggingface based services and models. It is mandatory to set it and run.sh script. To set it, export HUGGINGFACEHUB_API_TOKEN variable from shell.

Build from source#

If you want to build the dataprep image locally instead of using pre-built images:

# Build with default tag (uses current date in YYYYMMDD format)
source ./run.sh --build dataprep
    
# Build with custom tag
source ./run.sh --build dataprep my-registry/my-dataprep:v1.0

Note: All built images are automatically labeled for easy management and cleanup.

Common Customizations#

Customization options are currently provided in the context of the sample application. Refer to ChatQnA sample application for details like Helm and customization options.