mirror of
https://github.com/docker-library/php.git
synced 2025-08-12 02:36:20 +00:00
Update sodium extension to be shared (so it can be replaced if necessary by users)
This commit is contained in:
@ -119,7 +119,7 @@ RUN set -xe \
|
|||||||
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
||||||
--enable-mysqlnd \
|
--enable-mysqlnd \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -154,6 +154,9 @@ RUN set -xe \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
CMD ["php", "-a"]
|
CMD ["php", "-a"]
|
||||||
|
@ -120,7 +120,7 @@ RUN set -xe \
|
|||||||
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
||||||
--enable-mysqlnd \
|
--enable-mysqlnd \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -155,6 +155,9 @@ RUN set -xe \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
@ -120,7 +120,7 @@ RUN set -xe \
|
|||||||
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
||||||
--enable-mysqlnd \
|
--enable-mysqlnd \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -155,6 +155,9 @@ RUN set -xe \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
CMD ["php", "-a"]
|
CMD ["php", "-a"]
|
||||||
|
@ -119,7 +119,7 @@ RUN set -xe \
|
|||||||
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
||||||
--enable-mysqlnd \
|
--enable-mysqlnd \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -154,6 +154,9 @@ RUN set -xe \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
CMD ["php", "-a"]
|
CMD ["php", "-a"]
|
||||||
|
@ -120,7 +120,7 @@ RUN set -xe \
|
|||||||
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
||||||
--enable-mysqlnd \
|
--enable-mysqlnd \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -155,6 +155,9 @@ RUN set -xe \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
@ -120,7 +120,7 @@ RUN set -xe \
|
|||||||
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
||||||
--enable-mysqlnd \
|
--enable-mysqlnd \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -155,6 +155,9 @@ RUN set -xe \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
CMD ["php", "-a"]
|
CMD ["php", "-a"]
|
||||||
|
@ -201,7 +201,7 @@ RUN set -eux; \
|
|||||||
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
||||||
--with-password-argon2 \
|
--with-password-argon2 \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -243,6 +243,9 @@ RUN set -eux; \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
COPY apache2-foreground /usr/local/bin/
|
COPY apache2-foreground /usr/local/bin/
|
||||||
|
@ -142,7 +142,7 @@ RUN set -eux; \
|
|||||||
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
||||||
--with-password-argon2 \
|
--with-password-argon2 \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -184,6 +184,9 @@ RUN set -eux; \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
CMD ["php", "-a"]
|
CMD ["php", "-a"]
|
||||||
|
@ -143,7 +143,7 @@ RUN set -eux; \
|
|||||||
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
||||||
--with-password-argon2 \
|
--with-password-argon2 \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -185,6 +185,9 @@ RUN set -eux; \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
@ -143,7 +143,7 @@ RUN set -eux; \
|
|||||||
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
||||||
--with-password-argon2 \
|
--with-password-argon2 \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -185,6 +185,9 @@ RUN set -eux; \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
CMD ["php", "-a"]
|
CMD ["php", "-a"]
|
||||||
|
@ -113,7 +113,7 @@ RUN set -xe \
|
|||||||
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
# --enable-mysqlnd is included here because it's harder to compile after the fact than extensions are (since it's a plugin for several extensions, not an extension in itself)
|
||||||
--enable-mysqlnd \
|
--enable-mysqlnd \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -148,6 +148,9 @@ RUN set -xe \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
CMD ["php", "-a"]
|
CMD ["php", "-a"]
|
||||||
|
@ -136,7 +136,7 @@ RUN set -eux; \
|
|||||||
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
||||||
--with-password-argon2 \
|
--with-password-argon2 \
|
||||||
# https://wiki.php.net/rfc/libsodium
|
# https://wiki.php.net/rfc/libsodium
|
||||||
--with-sodium \
|
--with-sodium=shared \
|
||||||
\
|
\
|
||||||
--with-curl \
|
--with-curl \
|
||||||
--with-libedit \
|
--with-libedit \
|
||||||
@ -178,6 +178,9 @@ RUN set -eux; \
|
|||||||
|
|
||||||
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/
|
||||||
|
|
||||||
|
# sodium was built as a shared module (so that it can be replaced later if so desired), so let's enable it too (https://github.com/docker-library/php/issues/598)
|
||||||
|
RUN docker-php-ext-enable sodium
|
||||||
|
|
||||||
ENTRYPOINT ["docker-php-entrypoint"]
|
ENTRYPOINT ["docker-php-entrypoint"]
|
||||||
##<autogenerated>##
|
##<autogenerated>##
|
||||||
CMD ["php", "-a"]
|
CMD ["php", "-a"]
|
||||||
|
@ -166,6 +166,14 @@ for version in "${versions[@]}"; do
|
|||||||
sed -ri '/sodium/d' "$version/$suite/$variant/Dockerfile"
|
sed -ri '/sodium/d' "$version/$suite/$variant/Dockerfile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# remove any _extra_ blank lines created by the deletions above
|
||||||
|
awk '
|
||||||
|
NF > 0 { blank = 0 }
|
||||||
|
NF == 0 { ++blank }
|
||||||
|
blank < 2 { print }
|
||||||
|
' "$version/$suite/$variant/Dockerfile" > "$version/$suite/$variant/Dockerfile.new"
|
||||||
|
mv "$version/$suite/$variant/Dockerfile.new" "$version/$suite/$variant/Dockerfile"
|
||||||
|
|
||||||
# automatic `-slim` for stretch
|
# automatic `-slim` for stretch
|
||||||
# TODO always add slim once jessie is removed
|
# TODO always add slim once jessie is removed
|
||||||
sed -ri \
|
sed -ri \
|
||||||
|
Reference in New Issue
Block a user