PCC deployment scripts
This commit is contained in:
7
examples/quickstart/Dockerfile
Normal file
7
examples/quickstart/Dockerfile
Normal file
@@ -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
|
||||
19
examples/quickstart/build.sh
Executable file
19
examples/quickstart/build.sh
Executable file
@@ -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"
|
||||
7
examples/quickstart/pcc-deploy.toml
Normal file
7
examples/quickstart/pcc-deploy.toml
Normal file
@@ -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
|
||||
3
examples/quickstart/requirements.txt
Normal file
3
examples/quickstart/requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
pipecatcloud
|
||||
pipecat-ai[openai,daily,deepgram,cartesia,silero]
|
||||
python-dotenv
|
||||
Reference in New Issue
Block a user