Skip to content

Commit 9ea040f

Browse files
authored
Merge pull request #1039 from libp2p/dhuseby/fix/set-up-interop-testing
add transport interop testing config
2 parents d5b2536 + 8797543 commit 9ea040f

File tree

4 files changed

+735
-0
lines changed

4 files changed

+735
-0
lines changed

interop/transport/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM python:3.11-slim
2+
3+
WORKDIR /app
4+
5+
# Install system dependencies
6+
RUN apt-get update && apt-get install -y \
7+
redis-tools \
8+
build-essential \
9+
cmake \
10+
pkg-config \
11+
libgmp-dev \
12+
&& rm -rf /var/lib/apt/lists/*
13+
14+
# Copy the py-libp2p-${commitSha} folder so we can use it as a local dependency
15+
COPY ./ /app/py-libp2p
16+
17+
# Copy pyproject.toml and install Python dependencies
18+
COPY interop/transport/pyproject.toml .
19+
RUN pip install --no-cache-dir -e .
20+
21+
# Copy the ping test implementation
22+
COPY interop/transport/ping_test.py .
23+
24+
# Set environment variables
25+
ENV PYTHONUNBUFFERED=1
26+
ENV CI=true
27+
28+
# Set the entrypoint to run the ping test
29+
ENTRYPOINT ["python", "ping_test.py"]

0 commit comments

Comments
 (0)