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
20 changes: 20 additions & 0 deletions hole-punch/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
test-aliases:
- alias: "failing"
value: "rust-v0.56 x rust-v0.56"
- alias: "python"
value: "py-v0.5"

# Router configurations - Multiple router types for testing different NAT implementations
routers:
Expand All @@ -28,6 +30,15 @@ relays:
secureChannels: [noise, tls]
muxers: [yamux, mplex]

- id: py-v0.5
source:
type: local
path: images/python/v0.5
dockerfile: Dockerfile.relay
transports: [tcp, ws]
secureChannels: [noise]
muxers: [yamux]

# Implementation definitions
implementations:
- id: rust-v0.56
Expand All @@ -40,3 +51,12 @@ implementations:
transports: [quic-v1, tcp, ws]
secureChannels: [noise, tls]
muxers: [yamux, mplex]

- id: py-v0.5
source:
type: local
path: images/python/v0.5
dockerfile: Dockerfile.peer
transports: [tcp, ws]
secureChannels: [noise]
muxers: [yamux]
23 changes: 23 additions & 0 deletions hole-punch/images/python/v0.5/Dockerfile.peer
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM python:3.11-slim

WORKDIR /app

# Install system dependencies (iproute2 for network route setup, build deps for fastecdsa)
RUN apt-get update && apt-get install -y \
iproute2 \
git \
build-essential \
libgmp-dev \
&& rm -rf /var/lib/apt/lists/*

# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application
COPY peer.py .
COPY run-peer.sh /usr/local/bin/

RUN chmod +x /usr/local/bin/run-peer.sh

ENTRYPOINT ["/usr/local/bin/run-peer.sh"]
23 changes: 23 additions & 0 deletions hole-punch/images/python/v0.5/Dockerfile.relay
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM python:3.11-slim

WORKDIR /app

# Install system dependencies (including build deps for fastecdsa)
RUN apt-get update && apt-get install -y \
iproute2 \
git \
build-essential \
libgmp-dev \
&& rm -rf /var/lib/apt/lists/*

# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application
COPY relay.py .
COPY run-relay.sh /usr/local/bin/

RUN chmod +x /usr/local/bin/run-relay.sh

ENTRYPOINT ["/usr/local/bin/run-relay.sh"]
Loading
Loading