Sign inSign up

gaetano/quic_server

By gaetano

•Updated about 10 years ago

QUIC and HTTP2 testing server.

Image
0

850

gaetano/quic_server repository overview

⁠QUIC and HTTP2 testing server

Sets up a web server which provides this web page ⁠ in **localhost ** on port 5555 either over QUIC ore HTTP2. It is based on goquic⁠ project.

$ docker pull gaetano/quic_server
⁠Docker File

Alternatively, this Dockerfile can be used to generate an image that includes what it is required to serve the page in localhost over QUIC or HTTP2.

FROM golang:1.7

RUN apt-get -qq update && apt-get install -y build-essential cmake ninja-build
WORKDIR /go/src/github.com/devsisters/
RUN git clone https://github.com/devsisters/goquic.git

WORKDIR /go/src/github.com/devsisters/goquic/
RUN git clone https://github.com/devsisters/libquic.git

RUN ./build_libs.sh -a -r
RUN go build $GOPATH/src/github.com/devsisters/goquic/example/server.go

WORKDIR /root/
RUN git clone https://github.com/GaetanoCarlucci/test_webpage

ADD https://raw.githubusercontent.com/GaetanoCarlucci/CertificateGenerator/master/localhost/leaf_cert.key /opt/configs/key
ADD https://raw.githubusercontent.com/GaetanoCarlucci/CertificateGenerator/master/localhost/leaf_cert.pem /opt/configs/cert

ENTRYPOINT ["/go/src/github.com/devsisters/goquic/server"]
CMD ["--help"]
⁠Run HTTP/2 Server

In order to run the HTTP/2 server run:

#!/bin/bash

docker run -it \
      -d --net=host \
      --ulimit nofile=32768 gaetano/quic_server \
      -cert=/opt/configs/cert \
      -key=/opt/configs/key \
      -port=5555 \
      -n=4 \
      -root /root/test_webpage \
      -loglevel=2 \
⁠Run QUIC Server

Whereas for the QUIC server run:

#!/bin/bash

docker run -it \
      -d --net=host \
      --ulimit nofile=32768 gaetano/quic_server \
      -cert=/opt/configs/cert \
      -key=/opt/configs/key \
      -quic_only \
      -port=5556 \
      -n=4 \
      -root /root/test_webpage \
      -loglevel=2 \

⁠Load Pages with Chrome

In oder to load pages with chrome, plaease refer to this Docker image.

Temporarly you can check the HTTP2 server with your local Chrome Browser. Run:

google-chrome \
  --user-data-dir=/tmp/chrome-profile \
  --no-proxy-server \
  https://localhost:5555/files/

Tag summary

Content type

Image

Digest

Size

624.4 MB

Last updated

about 10 years ago

docker pull gaetano/quic_server