mirror of
https://github.com/danog/php.git
synced 2024-11-26 20:04:58 +01:00
Update sodium extension to be shared (so it can be replaced if necessary by users)
This commit is contained in:
parent
35aedb2900
commit
604dfc0baf
@ -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 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -154,6 +154,9 @@ RUN set -xe \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
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 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -155,6 +155,9 @@ RUN set -xe \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
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 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -155,6 +155,9 @@ RUN set -xe \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
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 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -154,6 +154,9 @@ RUN set -xe \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
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 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -155,6 +155,9 @@ RUN set -xe \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
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 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -155,6 +155,9 @@ RUN set -xe \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
CMD ["php", "-a"]
|
||||
|
@ -201,7 +201,7 @@ RUN set -eux; \
|
||||
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
||||
--with-password-argon2 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -243,6 +243,9 @@ RUN set -eux; \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
COPY apache2-foreground /usr/local/bin/
|
||||
|
@ -142,7 +142,7 @@ RUN set -eux; \
|
||||
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
||||
--with-password-argon2 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -184,6 +184,9 @@ RUN set -eux; \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
CMD ["php", "-a"]
|
||||
|
@ -143,7 +143,7 @@ RUN set -eux; \
|
||||
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
||||
--with-password-argon2 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -185,6 +185,9 @@ RUN set -eux; \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
WORKDIR /var/www/html
|
||||
|
@ -143,7 +143,7 @@ RUN set -eux; \
|
||||
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
||||
--with-password-argon2 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -185,6 +185,9 @@ RUN set -eux; \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
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 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -148,6 +148,9 @@ RUN set -xe \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
CMD ["php", "-a"]
|
||||
|
@ -136,7 +136,7 @@ RUN set -eux; \
|
||||
# https://wiki.php.net/rfc/argon2_password_hash (7.2+)
|
||||
--with-password-argon2 \
|
||||
# https://wiki.php.net/rfc/libsodium
|
||||
--with-sodium \
|
||||
--with-sodium=shared \
|
||||
\
|
||||
--with-curl \
|
||||
--with-libedit \
|
||||
@ -178,6 +178,9 @@ RUN set -eux; \
|
||||
|
||||
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"]
|
||||
##<autogenerated>##
|
||||
CMD ["php", "-a"]
|
||||
|
@ -166,6 +166,14 @@ for version in "${versions[@]}"; do
|
||||
sed -ri '/sodium/d' "$version/$suite/$variant/Dockerfile"
|
||||
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
|
||||
# TODO always add slim once jessie is removed
|
||||
sed -ri \
|
||||
|
Loading…
Reference in New Issue
Block a user