- Add new gRPC endpoint for Heartbeat in the Yao service, enabling communication with the sandbox. - Update Makefile to include a dedicated unit test target for Sandbox V2, ensuring proper testing of new features. - Enhance CI workflows to incorporate Sandbox V2 tests, allowing for dual-mode testing (local and remote) with Docker. - Modify .gitignore to exclude specific Docker files while allowing shell scripts for Sandbox V2. - Update documentation in DESIGN.md to reflect the new architecture and capabilities of the Sandbox V2. These changes enhance the Yao SDK's functionality, providing improved support for sandbox operations and testing.
21 lines
566 B
Docker
21 lines
566 B
Docker
# Sandbox V2 test image — adds test services on top of v2-base
|
|
FROM yaoapp/sandbox-v2-base:latest
|
|
|
|
USER root
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
nginx \
|
|
python3 \
|
|
python3-pip \
|
|
&& pip3 install --break-system-packages websockets \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Test service scripts
|
|
COPY ws-echo.py /opt/test/ws-echo.py
|
|
COPY sse-server.py /opt/test/sse-server.py
|
|
COPY entrypoint.sh /test-entrypoint.sh
|
|
RUN chmod +x /test-entrypoint.sh
|
|
|
|
USER sandbox
|
|
ENTRYPOINT ["/test-entrypoint.sh"]
|
|
CMD ["sleep", "infinity"]
|