add a client and server implementation for the interop test runner

This commit is contained in:
Marten Seemann
2019-10-05 00:13:34 +07:00
parent 789ea13dde
commit a2e61ad76d
6 changed files with 263 additions and 22 deletions

24
interop/Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM martenseemann/quic-network-simulator-endpoint:latest
RUN apt-get update && apt-get install -y wget tar git vim python
RUN wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz && \
tar xfz go1.13.3.linux-amd64.tar.gz && \
rm go1.13.3.linux-amd64.tar.gz
ENV PATH="/go/bin:${PATH}"
# build with --build-arg CACHEBUST=$(date +%s)
ARG CACHEBUST=1
RUN git clone https://github.com/lucas-clemente/quic-go && \
cd quic-go && \
git checkout interop && \
go get ./...
WORKDIR /quic-go
COPY run_endpoint.sh .
RUN chmod +x run_endpoint.sh
ENTRYPOINT [ "./run_endpoint.sh" ]