Skip to content

Commit

Permalink
Merge pull request #83 from GrahamCampbell/curl-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli authored May 17, 2023
2 parents 6fab390 + eac15c6 commit eacb8b6
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 98 deletions.
67 changes: 35 additions & 32 deletions php-80/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,39 @@ RUN make -j1 install_sw install_ssldirs
RUN mkdir -p ${INSTALL_DIR}/bref/ssl && curl -Lk -o ${CA_BUNDLE} ${CA_BUNDLE_SOURCE}


###############################################################################
# LIBXML2
# https://github.com/GNOME/libxml2/releases
# Uses:
# - zlib
# Needed by:
# - php
# - libnghttp2
ENV VERSION_XML2=2.11.2
ENV XML2_BUILD_DIR=${BUILD_DIR}/xml2
RUN set -xe; \
mkdir -p ${XML2_BUILD_DIR}; \
curl -Ls https://download.gnome.org/sources/libxml2/${VERSION_XML2%.*}/libxml2-${VERSION_XML2}.tar.xz \
| tar xJC ${XML2_BUILD_DIR} --strip-components=1
WORKDIR ${XML2_BUILD_DIR}/
RUN CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--prefix=${INSTALL_DIR} \
--with-sysroot=${INSTALL_DIR} \
--enable-shared \
--disable-static \
--with-html \
--with-history \
--enable-ipv6=no \
--with-icu \
--with-zlib \
--without-python
RUN make install \
&& cp xml2-config ${INSTALL_DIR}/bin/xml2-config


###############################################################################
# LIBSSH2
# https://github.com/libssh2/libssh2/releases
Expand Down Expand Up @@ -143,6 +176,7 @@ RUN cmake --build . --target install
# Needs:
# - zlib
# - OpenSSL
# - libxml2
# Needed by:
# - curl
ENV VERSION_NGHTTP2=1.53.0
Expand All @@ -168,6 +202,7 @@ RUN make install
# # - zlib
# # - OpenSSL
# # - libssh2
# # - libnghttp2
# # Needed by:
# # - php
ENV VERSION_CURL=7.85.0
Expand Down Expand Up @@ -205,38 +240,6 @@ RUN ./buildconf \
RUN make install


###############################################################################
# LIBXML2
# https://github.com/GNOME/libxml2/releases
# Uses:
# - zlib
# Needed by:
# - php
ENV VERSION_XML2=2.11.2
ENV XML2_BUILD_DIR=${BUILD_DIR}/xml2
RUN set -xe; \
mkdir -p ${XML2_BUILD_DIR}; \
curl -Ls https://download.gnome.org/sources/libxml2/${VERSION_XML2%.*}/libxml2-${VERSION_XML2}.tar.xz \
| tar xJC ${XML2_BUILD_DIR} --strip-components=1
WORKDIR ${XML2_BUILD_DIR}/
RUN CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--prefix=${INSTALL_DIR} \
--with-sysroot=${INSTALL_DIR} \
--enable-shared \
--disable-static \
--with-html \
--with-history \
--enable-ipv6=no \
--with-icu \
--with-zlib \
--without-python
RUN make install \
&& cp xml2-config ${INSTALL_DIR}/bin/xml2-config


###############################################################################
# LIBZIP
# https://github.com/nih-at/libzip/releases
Expand Down
70 changes: 37 additions & 33 deletions php-81/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ RUN CFLAGS="" \
--prefix=${INSTALL_DIR} \
--openssldir=${INSTALL_DIR}/bref/ssl \
--release \
enable-tls1_3 \
no-tests \
shared \
zlib
Expand All @@ -106,6 +107,39 @@ RUN make -j1 install_sw install_ssldirs
RUN mkdir -p ${INSTALL_DIR}/bref/ssl && curl -Lk -o ${CA_BUNDLE} ${CA_BUNDLE_SOURCE}


###############################################################################
# LIBXML2
# https://github.com/GNOME/libxml2/releases
# Uses:
# - zlib
# Needed by:
# - php
# - libnghttp2
ENV VERSION_XML2=2.11.2
ENV XML2_BUILD_DIR=${BUILD_DIR}/xml2
RUN set -xe; \
mkdir -p ${XML2_BUILD_DIR}; \
curl -Ls https://download.gnome.org/sources/libxml2/${VERSION_XML2%.*}/libxml2-${VERSION_XML2}.tar.xz \
| tar xJC ${XML2_BUILD_DIR} --strip-components=1
WORKDIR ${XML2_BUILD_DIR}/
RUN CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--prefix=${INSTALL_DIR} \
--with-sysroot=${INSTALL_DIR} \
--enable-shared \
--disable-static \
--with-html \
--with-history \
--enable-ipv6=no \
--with-icu \
--with-zlib \
--without-python
RUN make install \
&& cp xml2-config ${INSTALL_DIR}/bin/xml2-config


###############################################################################
# LIBSSH2
# https://github.com/libssh2/libssh2/releases
Expand Down Expand Up @@ -144,6 +178,7 @@ RUN cmake --build . --target install
# Needs:
# - zlib
# - OpenSSL
# - libxml2
# Needed by:
# - curl
ENV VERSION_NGHTTP2=1.53.0
Expand All @@ -169,9 +204,10 @@ RUN make install
# # - zlib
# # - OpenSSL
# # - libssh2
# # - libnghttp2
# # Needed by:
# # - php
ENV VERSION_CURL=7.85.0
ENV VERSION_CURL=8.1.0
ENV CURL_BUILD_DIR=${BUILD_DIR}/curl
RUN set -xe; \
mkdir -p ${CURL_BUILD_DIR}/bin; \
Expand Down Expand Up @@ -206,38 +242,6 @@ RUN ./buildconf \
RUN make install


###############################################################################
# LIBXML2
# https://github.com/GNOME/libxml2/releases
# Uses:
# - zlib
# Needed by:
# - php
ENV VERSION_XML2=2.11.2
ENV XML2_BUILD_DIR=${BUILD_DIR}/xml2
RUN set -xe; \
mkdir -p ${XML2_BUILD_DIR}; \
curl -Ls https://download.gnome.org/sources/libxml2/${VERSION_XML2%.*}/libxml2-${VERSION_XML2}.tar.xz \
| tar xJC ${XML2_BUILD_DIR} --strip-components=1
WORKDIR ${XML2_BUILD_DIR}/
RUN CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--prefix=${INSTALL_DIR} \
--with-sysroot=${INSTALL_DIR} \
--enable-shared \
--disable-static \
--with-html \
--with-history \
--enable-ipv6=no \
--with-icu \
--with-zlib \
--without-python
RUN make install \
&& cp xml2-config ${INSTALL_DIR}/bin/xml2-config


###############################################################################
# LIBZIP
# https://github.com/nih-at/libzip/releases
Expand Down
70 changes: 37 additions & 33 deletions php-82/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ RUN CFLAGS="" \
--prefix=${INSTALL_DIR} \
--openssldir=${INSTALL_DIR}/bref/ssl \
--release \
enable-tls1_3 \
no-tests \
shared \
zlib
Expand All @@ -106,6 +107,39 @@ RUN make -j1 install_sw install_ssldirs
RUN mkdir -p ${INSTALL_DIR}/bref/ssl && curl -Lk -o ${CA_BUNDLE} ${CA_BUNDLE_SOURCE}


###############################################################################
# LIBXML2
# https://github.com/GNOME/libxml2/releases
# Uses:
# - zlib
# Needed by:
# - php
# - libnghttp2
ENV VERSION_XML2=2.11.2
ENV XML2_BUILD_DIR=${BUILD_DIR}/xml2
RUN set -xe; \
mkdir -p ${XML2_BUILD_DIR}; \
curl -Ls https://download.gnome.org/sources/libxml2/${VERSION_XML2%.*}/libxml2-${VERSION_XML2}.tar.xz \
| tar xJC ${XML2_BUILD_DIR} --strip-components=1
WORKDIR ${XML2_BUILD_DIR}/
RUN CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--prefix=${INSTALL_DIR} \
--with-sysroot=${INSTALL_DIR} \
--enable-shared \
--disable-static \
--with-html \
--with-history \
--enable-ipv6=no \
--with-icu \
--with-zlib \
--without-python
RUN make install \
&& cp xml2-config ${INSTALL_DIR}/bin/xml2-config


###############################################################################
# LIBSSH2
# https://github.com/libssh2/libssh2/releases
Expand Down Expand Up @@ -144,6 +178,7 @@ RUN cmake --build . --target install
# Needs:
# - zlib
# - OpenSSL
# - libxml2
# Needed by:
# - curl
ENV VERSION_NGHTTP2=1.53.0
Expand All @@ -169,9 +204,10 @@ RUN make install
# # - zlib
# # - OpenSSL
# # - libssh2
# # - libnghttp2
# # Needed by:
# # - php
ENV VERSION_CURL=7.85.0
ENV VERSION_CURL=8.1.0
ENV CURL_BUILD_DIR=${BUILD_DIR}/curl
RUN set -xe; \
mkdir -p ${CURL_BUILD_DIR}/bin; \
Expand Down Expand Up @@ -206,38 +242,6 @@ RUN ./buildconf \
RUN make install


###############################################################################
# LIBXML2
# https://github.com/GNOME/libxml2/releases
# Uses:
# - zlib
# Needed by:
# - php
ENV VERSION_XML2=2.11.2
ENV XML2_BUILD_DIR=${BUILD_DIR}/xml2
RUN set -xe; \
mkdir -p ${XML2_BUILD_DIR}; \
curl -Ls https://download.gnome.org/sources/libxml2/${VERSION_XML2%.*}/libxml2-${VERSION_XML2}.tar.xz \
| tar xJC ${XML2_BUILD_DIR} --strip-components=1
WORKDIR ${XML2_BUILD_DIR}/
RUN CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--prefix=${INSTALL_DIR} \
--with-sysroot=${INSTALL_DIR} \
--enable-shared \
--disable-static \
--with-html \
--with-history \
--enable-ipv6=no \
--with-icu \
--with-zlib \
--without-python
RUN make install \
&& cp xml2-config ${INSTALL_DIR}/bin/xml2-config


###############################################################################
# LIBZIP
# https://github.com/nih-at/libzip/releases
Expand Down

0 comments on commit eacb8b6

Please sign in to comment.