Skip to content

Commit 73a7365

Browse files
author
Roxanne Farhad
committed
adding the test files to the imag
1 parent 7046381 commit 73a7365

18 files changed

Lines changed: 214 additions & 41 deletions

File tree

examples/tutorials/00_sync/000_hello_acp/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,20 @@ WORKDIR /app/000_hello_acp
3131
# Copy the project code
3232
COPY 000_hello_acp/project /app/000_hello_acp/project
3333

34-
# Install the required Python packages from pyproject.toml
35-
RUN uv pip install --system .
34+
# Copy the test files
35+
COPY 000_hello_acp/tests /app/000_hello_acp/tests
36+
37+
# Copy shared test utilities
38+
COPY test_utils /app/test_utils
39+
40+
# Install the required Python packages with dev dependencies (includes pytest)
41+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3642

3743
# Set environment variables
3844
ENV PYTHONPATH=/app
3945

46+
# Set test environment variables
47+
ENV AGENT_NAME=s000-hello-acp
48+
4049
# Run the agent using uvicorn
4150
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/00_sync/010_multiturn/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,21 @@ WORKDIR /app/010_multiturn
3131
# Copy the project code
3232
COPY 010_multiturn/project /app/010_multiturn/project
3333

34-
# Install the required Python packages from pyproject.toml
35-
RUN uv pip install --system .
34+
# Copy the test files
35+
COPY 010_multiturn/tests /app/010_multiturn/tests
36+
37+
# Copy shared test utilities
38+
COPY test_utils /app/test_utils
39+
40+
# Install the required Python packages with dev dependencies (includes pytest)
41+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3642

3743
WORKDIR /app/010_multiturn
3844
# Set environment variables
3945
ENV PYTHONPATH=/app
4046

47+
# Set test environment variables
48+
ENV AGENT_NAME=s010-multiturn
49+
4150
# Run the agent using uvicorn
4251
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/00_sync/020_streaming/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,20 @@ WORKDIR /app/020_streaming
3131
# Copy the project code
3232
COPY 020_streaming/project /app/020_streaming/project
3333

34-
# Install the required Python packages from pyproject.toml
35-
RUN uv pip install --system .
34+
# Copy the test files
35+
COPY 020_streaming/tests /app/020_streaming/tests
36+
37+
# Copy shared test utilities
38+
COPY test_utils /app/test_utils
39+
40+
# Install the required Python packages with dev dependencies (includes pytest)
41+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3642

3743
# Set environment variables
3844
ENV PYTHONPATH=/app
3945

46+
# Set test environment variables
47+
ENV AGENT_NAME=s020-streaming
48+
4049
# Run the agent using uvicorn
4150
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/000_hello_acp/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,21 @@ WORKDIR /app/000_hello_acp
3131
# Copy the project code
3232
COPY 000_hello_acp/project /app/000_hello_acp/project
3333

34-
# Install the required Python packages from pyproject.toml
35-
RUN uv pip install --system .
34+
# Copy the test files
35+
COPY 000_hello_acp/tests /app/000_hello_acp/tests
36+
37+
# Copy shared test utilities
38+
COPY test_utils /app/test_utils
39+
40+
# Install the required Python packages with dev dependencies (includes pytest)
41+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3642

3743
WORKDIR /app/000_hello_acp
3844
# Set environment variables
3945
ENV PYTHONPATH=/app
4046

47+
# Set test environment variables
48+
ENV AGENT_NAME=ab000-hello-acp
49+
4150
# Run the agent using uvicorn
4251
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/010_multiturn/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,22 @@ WORKDIR /app/010_multiturn
3030

3131
COPY 010_multiturn/project /app/010_multiturn/project
3232

33-
# Install the required Python packages from pyproject.toml
34-
RUN uv pip install --system .
33+
# Copy the test files
34+
COPY 010_multiturn/tests /app/010_multiturn/tests
35+
36+
# Copy shared test utilities
37+
COPY test_utils /app/test_utils
38+
39+
# Install the required Python packages with dev dependencies (includes pytest)
40+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3541

3642
WORKDIR /app/010_multiturn
3743

3844
# Set environment variables
3945
ENV PYTHONPATH=/app
4046

47+
# Set test environment variables
48+
ENV AGENT_NAME=ab010-multiturn
49+
4150
# Run the agent using uvicorn
4251
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/020_streaming/Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,20 @@ WORKDIR /app/020_streaming
3131
# Copy the project code
3232
COPY 020_streaming/project /app/020_streaming/project
3333

34-
# Install the required Python packages from pyproject.toml
35-
RUN uv pip install --system .
34+
# Copy the test files
35+
COPY 020_streaming/tests /app/020_streaming/tests
36+
37+
# Copy shared test utilities
38+
COPY test_utils /app/test_utils
39+
40+
# Install the required Python packages with dev dependencies (includes pytest)
41+
RUN uv pip install --system .[dev] pytest-asyncio httpx
42+
3643
# Set environment variables
3744
ENV PYTHONPATH=/app
3845

46+
# Set test environment variables
47+
ENV AGENT_NAME=ab020-streaming
48+
3949
# Run the agent using uvicorn
4050
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/030_tracing/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,20 @@ WORKDIR /app/030_tracing
3131
# Copy the project code
3232
COPY 030_tracing/project /app/030_tracing/project
3333

34-
# Install the required Python packages from pyproject.toml
35-
RUN uv pip install --system .
34+
# Copy the test files
35+
COPY 030_tracing/tests /app/030_tracing/tests
36+
37+
# Copy shared test utilities
38+
COPY test_utils /app/test_utils
39+
40+
# Install the required Python packages with dev dependencies (includes pytest)
41+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3642

3743
# Set environment variables
3844
ENV PYTHONPATH=/app
3945

46+
# Set test environment variables
47+
ENV AGENT_NAME=ab030-tracing
48+
4049
# Run the agent using uvicorn
4150
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/040_other_sdks/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,20 @@ WORKDIR /app/040_other_sdks
3131
# Copy the project code
3232
COPY 040_other_sdks/project /app/040_other_sdks/project
3333

34-
# Install the required Python packages from pyproject.toml
35-
RUN uv pip install --system .
34+
# Copy the test files
35+
COPY 040_other_sdks/tests /app/040_other_sdks/tests
36+
37+
# Copy shared test utilities
38+
COPY test_utils /app/test_utils
39+
40+
# Install the required Python packages with dev dependencies (includes pytest)
41+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3642

3743
# Set environment variables
3844
ENV PYTHONPATH=/app
3945

46+
# Set test environment variables
47+
ENV AGENT_NAME=ab040-other-sdks
48+
4049
# Run the agent using uvicorn
4150
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/080_batch_events/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,21 @@ WORKDIR /app/080_batch_events
3131
# Copy the project code
3232
COPY 080_batch_events/project /app/080_batch_events/project
3333

34-
# Copy test files
35-
COPY 080_batch_events/test_*.py /app/080_batch_events/
34+
# Copy the test files
35+
COPY 080_batch_events/tests /app/080_batch_events/tests
3636

37-
# Install the required Python packages from pyproject.toml
38-
RUN uv pip install --system .
37+
# Copy shared test utilities
38+
COPY test_utils /app/test_utils
3939

40-
# Install pytest for running tests
41-
RUN uv pip install --system pytest pytest-asyncio
40+
# Install the required Python packages with dev dependencies (includes pytest)
41+
RUN uv pip install --system .[dev] pytest-asyncio httpx
4242

4343
WORKDIR /app/080_batch_events
4444
# Set environment variables
4545
ENV PYTHONPATH=/app
4646

47+
# Set test environment variables
48+
ENV AGENT_NAME=ab080-batch-events
49+
4750
# Run the agent using uvicorn
4851
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/090_multi_agent_non_temporal/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,23 @@ WORKDIR /app/090_multi_agent_non_temporal
3232
# Copy the project code
3333
COPY 090_multi_agent_non_temporal/project /app/090_multi_agent_non_temporal/project
3434

35-
# Install the required Python packages from pyproject.toml
36-
RUN uv pip install --system .
35+
# Copy the test files
36+
COPY 090_multi_agent_non_temporal/tests /app/090_multi_agent_non_temporal/tests
37+
38+
# Copy shared test utilities
39+
COPY test_utils /app/test_utils
40+
41+
# Install the required Python packages with dev dependencies (includes pytest)
42+
RUN uv pip install --system .[dev] pytest-asyncio httpx
3743

3844
# Set environment variables
3945
ENV PYTHONPATH=/app
4046

4147
ARG AGENT_FILE
4248
ARG PORT
4349

50+
# Note: AGENT_NAME should be set at runtime based on which agent is running
51+
# (ab090-creator-agent, ab090-critic-agent, ab090-formatter-agent, or ab090-orchestrator-agent)
52+
4453
# Run the agent using uvicorn
4554
CMD uvicorn project.${AGENT_FILE%.*}:acp --host 0.0.0.0 --port ${PORT:-8000}

0 commit comments

Comments
 (0)