mirror of
https://github.com/h2o/h2o.git
synced 2025-04-19 16:09:15 +08:00
update curl to 7.81.0
This commit is contained in:
parent
d1f0f65269
commit
b335aff32a
@ -4,3 +4,5 @@ doc/workdir
|
||||
h2o.xcodeproj
|
||||
tmp
|
||||
.gitkeep
|
||||
.git
|
||||
tags
|
||||
|
@ -9,21 +9,17 @@ RUN apt-get install --yes time
|
||||
|
||||
# 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 libbrotli-dev dnsutils
|
||||
RUN apt-get install --yes libev-dev libc-ares-dev libssl-dev libuv1-dev zlib1g-dev libbrotli-dev dnsutils
|
||||
|
||||
# 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 - https://curl.haxx.se/download/curl-7.57.0.tar.gz | tar xzf -
|
||||
RUN (cd curl-7.57.0 && ./configure --prefix=/usr/local --without-brotli --with-nghttp2 --disable-shared && make && sudo make install)
|
||||
|
||||
ARG OPENSSL_URL="https://www.openssl.org/source/"
|
||||
# openssl 1.1.0
|
||||
ARG OPENSSL_VERSION="1.1.0i"
|
||||
ARG OPENSSL_SHA1="6713f8b083e4c0b0e70fd090bf714169baf3717c"
|
||||
RUN curl -O ${OPENSSL_URL}openssl-${OPENSSL_VERSION}.tar.gz
|
||||
RUN wget ${OPENSSL_URL}openssl-${OPENSSL_VERSION}.tar.gz
|
||||
RUN (echo "${OPENSSL_SHA1} openssl-${OPENSSL_VERSION}.tar.gz" | sha1sum -c - && tar xf openssl-${OPENSSL_VERSION}.tar.gz)
|
||||
RUN (cd openssl-${OPENSSL_VERSION} && \
|
||||
./config --prefix=/opt/openssl-1.1.0 --openssldir=/opt/openssl-1.1.0 shared enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers && \
|
||||
@ -32,12 +28,26 @@ RUN (cd openssl-${OPENSSL_VERSION} && \
|
||||
# openssl 1.1.1
|
||||
ARG OPENSSL_VERSION="1.1.1c"
|
||||
ARG OPENSSL_SHA1="71b830a077276cbeccc994369538617a21bee808"
|
||||
RUN curl -O ${OPENSSL_URL}openssl-${OPENSSL_VERSION}.tar.gz
|
||||
RUN wget ${OPENSSL_URL}openssl-${OPENSSL_VERSION}.tar.gz
|
||||
RUN (echo "${OPENSSL_SHA1} openssl-${OPENSSL_VERSION}.tar.gz" | sha1sum -c - && tar xf openssl-${OPENSSL_VERSION}.tar.gz)
|
||||
RUN (cd openssl-${OPENSSL_VERSION} && \
|
||||
./config --prefix=/opt/openssl-1.1.1 --openssldir=/opt/openssl-1.1.1 shared enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers && \
|
||||
make -j $(nproc) && make -j install_sw install_ssldirs)
|
||||
|
||||
# nghttp2 and h2load
|
||||
ARG NGHTTP2_VERSION="1.30.0"
|
||||
ARG NGHTTP2_SHA256="089afb4c22a53f72384b71ea06194be255a8a73b50b1412589105d0e683c52ac"
|
||||
RUN apt-get install --yes autoconf automake autotools-dev libtool pkg-config
|
||||
RUN wget https://github.com/nghttp2/nghttp2/releases/download/v${NGHTTP2_VERSION}/nghttp2-${NGHTTP2_VERSION}.tar.xz
|
||||
RUN (echo "${NGHTTP2_SHA256} nghttp2-${NGHTTP2_VERSION}.tar.xz" | sha256sum -c -)
|
||||
RUN tar xf nghttp2-${NGHTTP2_VERSION}.tar.xz
|
||||
RUN cd nghttp2-${NGHTTP2_VERSION} && autoreconf -i && automake && autoconf && ./configure --enable-app --prefix=/usr/local && make && make install
|
||||
ENV LD_LIBRARY_PATH="/usr/local/lib"
|
||||
|
||||
# curl with http2 support
|
||||
RUN wget --no-verbose -O - https://curl.haxx.se/download/curl-7.81.0.tar.gz | tar xzf -
|
||||
RUN (cd curl-7.81.0 && ./configure --prefix=/usr/local --with-openssl --without-brotli --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
|
||||
@ -50,16 +60,6 @@ RUN sudo cpanm --notest https://github.com/tokuhirom/Test-TCP.git@2.21
|
||||
# h2spec
|
||||
RUN curl -Ls https://github.com/i110/h2spec/releases/download/v2.2.0-4e8cc7e/h2spec_linux_amd64.tar.gz | tar zx -C /usr/local/bin
|
||||
|
||||
# h2load
|
||||
ARG NGHTTP2_VERSION="1.30.0"
|
||||
ARG NGHTTP2_SHA256="089afb4c22a53f72384b71ea06194be255a8a73b50b1412589105d0e683c52ac"
|
||||
RUN apt-get install --yes autoconf automake autotools-dev libtool pkg-config
|
||||
RUN curl -LO https://github.com/nghttp2/nghttp2/releases/download/v${NGHTTP2_VERSION}/nghttp2-${NGHTTP2_VERSION}.tar.xz
|
||||
RUN (echo "${NGHTTP2_SHA256} nghttp2-${NGHTTP2_VERSION}.tar.xz" | sha256sum -c -)
|
||||
RUN tar xf nghttp2-${NGHTTP2_VERSION}.tar.xz
|
||||
RUN cd nghttp2-${NGHTTP2_VERSION} && autoreconf -i && automake && autoconf && ./configure --enable-app --prefix=/usr/local && make && make install
|
||||
ENV LD_LIBRARY_PATH="/usr/local/lib"
|
||||
|
||||
# use dumb-init
|
||||
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64 \
|
||||
&& chmod +x /usr/local/bin/dumb-init
|
||||
|
@ -9,7 +9,6 @@ RUN apt-get install --yes \
|
||||
clang \
|
||||
cmake \
|
||||
cmake-data \
|
||||
curl \
|
||||
dnsutils \
|
||||
flex \
|
||||
git \
|
||||
@ -42,10 +41,10 @@ RUN apt-get install --yes \
|
||||
time \
|
||||
wget
|
||||
|
||||
# install curl 7.57.0 because t/50fastcgi.t depends on it.
|
||||
# curl with http2 support
|
||||
RUN apt-get install --yes libnghttp2-dev \
|
||||
&& wget --no-verbose -O - https://curl.haxx.se/download/curl-7.57.0.tar.gz | tar xzf - \
|
||||
&& (cd curl-7.57.0 && ./configure --prefix=/usr/local --without-brotli --with-nghttp2 --disable-shared && make && sudo make install)
|
||||
&& wget --no-verbose -O - https://curl.haxx.se/download/curl-7.81.0.tar.gz | tar xzf - \
|
||||
&& (cd curl-7.81.0 && ./configure --prefix=/usr/local --with-openssl --without-brotli --with-nghttp2 --disable-shared && make && sudo make install)
|
||||
|
||||
# perl
|
||||
RUN apt-get install --yes \
|
||||
|
Loading…
x
Reference in New Issue
Block a user