Skip to content

Cannot deploy an agent from a monorepoΒ #688

@decafdennis

Description

@decafdennis

Hello,

We have a monorepo (using Turborepo and pnpm), and we'd like our Node.js-based LiveKit agent to live there so that we can import shared code from packages that live in the same monorepo. It looks roughly like this:

<repo>
  apps/my-livekit-agent
    package.json
    livekit.toml
    Dockerfile
    src/agent.ts # imports from @repo/app-types/shared
  packages/app-types
    package.json
    src/shared.ts

The Dockerfile is set up such that the agent container image builds successfully when I run docker build -f apps/my-livekit-agent . from the root of the monorepo. (This is also how we build and deploy other services.)

Unfortunately, the LiveKit CLI lk agent deploy command does not seem to allow this setup in any way, preventing us from deploying our agent to LiveKit Cloud. The CLI seems to require that the package.json with the @livekit/agents dependency, the livekit.toml file, the Dockerfile, and the entire container build context are all in one and the same directory and there isn't a way to push your own container image either.

I assume this issue is a feature request, but let me know if I'm missing something!

-Dennis

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