LoginSignup
8
8

More than 5 years have passed since last update.

Dockerでnghttp2を動かす

Last updated at Posted at 2014-11-03

HTTP2ConferenceにてHTTP2.0の実装を試すにはnghttp2が良いという知見を得たので,OSX上でboot2dockerを使って楽しむことにした.

イメージを作成する

Dockerfileは以下.

FROM buildpack-deps

RUN git clone https://github.com/tatsuhiro-t/nghttp2 \
    && cd nghttp2 \
    && autoreconf -i \
    && automake \
    && autoconf \
    && ./configure \
    && make

WORKDIR /nghttp2/src    

あとは以下でビルドしてイメージを作成する.

$ docker build -t tcnksm/nghttp2 .

動かす

サーバーを動かしてみる.

$ docker run --rm -p 8888:8888 tcnksm/nghttp2 ./nghttpd --no-tls 8888

boot2dockerで動かしている場合は,以下でアクセスできる.

$ curl $(boot2docker ip):8888

参考

8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8