Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@
/.idea
/*git_ignore*
.DS_Store
.adk
tmp/
165 changes: 165 additions & 0 deletions perfkitbenchmarker/data/docker/agentic/adk-agent/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
.venv/
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject


### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*


### OSX ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


### Vagrant ###
.vagrant/
### Local rules, see .gitignore.tail to override! ###
shippable
.git

tmp/
sessions.db
.adk/
25 changes: 25 additions & 0 deletions perfkitbenchmarker/data/docker/agentic/adk-agent/.gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This file tells gcloud builds submit which files to exclude from the upload.
# Without it, gcloud ignores .dockerignore and uploads everything (including .venv).

.git
.venv/
venv/
ENV/
__pycache__/
*.py[cod]
*$py.class
*.so
*.egg-info/
*.egg
dist/
build/
.tox/
.cache/
.coverage
htmlcov/
*.log
.env
.adk/
sessions.db
tmp/
.DS_Store
29 changes: 29 additions & 0 deletions perfkitbenchmarker/data/docker/agentic/adk-agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM python:3.13-slim
WORKDIR /app

# Install kubectl (required by k8s-agent-sandbox for port-forwarding to sandbox pods)
# Uses TARGETARCH (injected by BuildKit) to download the correct binary for amd64 or arm64
RUN apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates && \
ARCH=$(dpkg --print-architecture) && \
curl -LO "https://dl.k8s.io/release/$(curl -sL https://dl.k8s.io/release/stable.txt)/bin/linux/${ARCH}/kubectl" && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
rm kubectl && \
apt-get purge -y curl && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

RUN adduser --disabled-password --gecos "" myuser && \
chown -R myuser:myuser /app

COPY . .

USER myuser

ENV PATH="/home/myuser/.local/bin:$PATH"

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ADK Agent package
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Cloud Build config for cross-compiling to ARM64.
# Used by PKB when --container_remote_build_config points to this file.
# The _IMAGE substitution is passed by PKB RemoteBuild() automatically.
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['run', '--privileged', 'multiarch/qemu-user-static', '--reset', '-p', 'yes']
id: 'qemu-setup'
- name: 'gcr.io/cloud-builders/docker'
args: ['buildx', 'create', '--use', '--name', 'multiarch-builder']
id: 'create-builder'
waitFor: ['qemu-setup']
- name: 'gcr.io/cloud-builders/docker'
args: ['buildx', 'build', '--platform', 'linux/arm64', '-t', '${_IMAGE}', '--push', '.']
id: 'build-and-push'
waitFor: ['create-builder']
options:
logging: CLOUD_LOGGING_ONLY
machineType: E2_HIGHCPU_32
substitutions:
_IMAGE: ''
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GKE Performance Agent package
from . import agent
Loading