From acbc045d4703a2277fe907adb3b83bd22e28e03a Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Fri, 25 Jul 2025 22:33:49 -0400 Subject: [PATCH] PCC deployment scripts --- examples/quickstart/Dockerfile | 7 +++++++ examples/quickstart/build.sh | 19 +++++++++++++++++++ examples/quickstart/pcc-deploy.toml | 7 +++++++ examples/quickstart/requirements.txt | 3 +++ 4 files changed, 36 insertions(+) create mode 100644 examples/quickstart/Dockerfile create mode 100755 examples/quickstart/build.sh create mode 100644 examples/quickstart/pcc-deploy.toml create mode 100644 examples/quickstart/requirements.txt diff --git a/examples/quickstart/Dockerfile b/examples/quickstart/Dockerfile new file mode 100644 index 000000000..70a179871 --- /dev/null +++ b/examples/quickstart/Dockerfile @@ -0,0 +1,7 @@ +FROM dailyco/pipecat-base:latest + +COPY ./requirements.txt requirements.txt + +RUN pip install --no-cache-dir --upgrade -r requirements.txt + +COPY ./cloud-simple-bot.py bot.py diff --git a/examples/quickstart/build.sh b/examples/quickstart/build.sh new file mode 100755 index 000000000..d0adb46fb --- /dev/null +++ b/examples/quickstart/build.sh @@ -0,0 +1,19 @@ +#!/bin/bash +set -e + +VERSION="0.1" +DOCKER_USERNAME="your_docker_username" +AGENT_NAME="cloud-simple-bot" + +# Build the Docker image with the correct context +echo "Building Docker image..." +docker build --platform=linux/arm64 -t "$DOCKER_USERNAME/$AGENT_NAME:$VERSION" -t "$DOCKER_USERNAME/$AGENT_NAME:latest" . + +# Push the Docker images +echo "Pushing Docker image $DOCKER_USERNAME/$AGENT_NAME:$VERSION..." +docker push "$DOCKER_USERNAME/$AGENT_NAME:$VERSION" + +echo "Pushing Docker image $DOCKER_USERNAME/$AGENT_NAME:latest..." +docker push "$DOCKER_USERNAME/$AGENT_NAME:latest" + +echo "Successfully built and pushed $DOCKER_USERNAME/$AGENT_NAME:$VERSION and $DOCKER_USERNAME/$AGENT_NAME:latest" \ No newline at end of file diff --git a/examples/quickstart/pcc-deploy.toml b/examples/quickstart/pcc-deploy.toml new file mode 100644 index 000000000..600f0687f --- /dev/null +++ b/examples/quickstart/pcc-deploy.toml @@ -0,0 +1,7 @@ +agent_name = "cloud-simple-bot" +image = "your_dockerhub_username/cloud-simple-bot:0.1" +image_credentials = "dockerhub-access" +secret_set = "cloud-simple-bot-secrets" + +[scaling] + min_agents = 0 diff --git a/examples/quickstart/requirements.txt b/examples/quickstart/requirements.txt new file mode 100644 index 000000000..b3538b7e9 --- /dev/null +++ b/examples/quickstart/requirements.txt @@ -0,0 +1,3 @@ +pipecatcloud +pipecat-ai[openai,daily,deepgram,cartesia,silero] +python-dotenv