Skip to content

Data API Builder RunAsExecutable #639

@tommasodotNET

Description

@tommasodotNET

Related to an existing integration?

Yes

Existing integration

DataAPIBuilder

Overview

Running DAB as an executable could be a valuable option for developers to avoid dealing with a container. There is a known issue at the moment in Aspire when sending telemetry from a container.

Usage example

var dab = builder.AddDataAPIBuilder("dab").RunAsExecutable();

Where RunAsExecutable would check for the Context.IsPublishMode and if the app is running locally, it would run the same dab config using the local CLI.

Breaking change?

No

Alternatives

Current alternative is to run DAB as an executable using the standard Aspire AddExectuable method.

var dab = builder.AddExecutable("dab", "dab", "../../dab/", "start")
    .WithReference(sqlDatabase)
    .WithHttpEndpoint(targetPort: 5000)
    .WaitFor(sqlServer)
    .WithOtlpExporter();

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions