Switch branches/tags
Find file Copy path
d8594b4 Sep 12, 2018
3 contributors

Users who have contributed to this file

@kazuho @i110 @zlm2012
41 lines (30 sloc) 1.57 KB
FROM ubuntu:16.04
RUN apt-get --yes update
# huge packages go first (for better cacheability)
RUN apt-get install --yes bison ruby-dev
RUN apt-get install --yes php-cgi
# tools for building and testing
RUN apt-get install --yes apache2-utils cmake cmake-data git memcached netcat-openbsd nghttp2-client redis-server wget sudo
RUN apt-get install --yes libev-dev libc-ares-dev libnghttp2-dev libssl-dev libuv1-dev zlib1g-dev
# clang-4.0 for fuzzing
RUN apt-get install -y clang-4.0
ENV PATH=/usr/lib/llvm-4.0/bin:$PATH
# curl with http2 support
RUN wget --no-verbose -O - | tar xzf -
RUN (cd curl-7.57.0 && ./configure --prefix=/usr/local --with-nghttp2 --disable-shared && make && sudo make install)
# cpan modules
RUN apt-get install --yes cpanminus
RUN apt-get install --yes libfcgi-perl libfcgi-procmanager-perl libipc-signal-perl libjson-perl liblist-moreutils-perl libplack-perl libscope-guard-perl libtest-exception-perl libwww-perl libio-socket-ssl-perl
RUN sudo cpanm --notest Starlet Test::TCP Protocol::HTTP2
# h2spec
RUN curl -Ls | tar zx -C /usr/local/bin
# use dumb-init
RUN wget -O /usr/local/bin/dumb-init \
&& chmod +x /usr/local/bin/dumb-init
# create user
RUN useradd --create-home ci
RUN echo 'ci ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
WORKDIR /home/ci
ENTRYPOINT ["/usr/local/bin/dumb-init"]