- Rename and enhance the Docker instance startup steps for Tai in CI workflows, improving clarity and readiness checks for both HTTP and gRPC services. - Update health check logic to ensure accurate reporting of service readiness, including specific error messages for failures. - Modify environment variable configurations to streamline the setup for K8s and Docker instances, ensuring consistent port usage across tests. These changes improve the reliability and clarity of the CI processes for the Tai service, enhancing overall testing and deployment workflows.
39 lines
1.3 KiB
Docker
39 lines
1.3 KiB
Docker
# Sandbox V2 base image — self-contained, no dependency on V1 sandbox-base
|
|
FROM ubuntu:24.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Faster mirror for ARM64
|
|
RUN sed -i 's|http://ports.ubuntu.com/ubuntu-ports|http://mirrors.mit.edu/ubuntu-ports|g' /etc/apt/sources.list.d/ubuntu.sources 2>/dev/null || \
|
|
sed -i 's|http://ports.ubuntu.com/ubuntu-ports|http://mirrors.mit.edu/ubuntu-ports|g' /etc/apt/sources.list 2>/dev/null || true
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
tini \
|
|
curl wget git ca-certificates gnupg lsb-release jq \
|
|
vim less tree \
|
|
iputils-ping net-tools dnsutils telnet netcat-openbsd \
|
|
zip unzip tar gzip \
|
|
htop procps \
|
|
sed gawk grep \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /workspace
|
|
|
|
RUN useradd -m -s /bin/bash sandbox && \
|
|
chown -R sandbox:sandbox /workspace
|
|
|
|
# yao-grpc binary (replaces yao-bridge from V1)
|
|
ARG TARGETARCH
|
|
COPY yao-grpc-${TARGETARCH} /usr/local/bin/yao-grpc
|
|
RUN chmod +x /usr/local/bin/yao-grpc
|
|
|
|
# openai-proxy: Anthropic Messages API → OpenAI Chat Completions API
|
|
COPY openai-proxy-${TARGETARCH} /usr/local/bin/openai-proxy
|
|
RUN chmod +x /usr/local/bin/openai-proxy
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
USER sandbox
|
|
ENTRYPOINT ["/usr/bin/tini", "--", "/entrypoint.sh"]
|
|
CMD ["sleep", "infinity"]
|