File tree Expand file tree Collapse file tree 6 files changed +31
-0
lines changed Expand file tree Collapse file tree 6 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y \
22
22
$PHPIZE_DEPS \
23
23
ca-certificates \
24
24
curl \
25
+ libargon2-0 \
25
26
libedit2 \
26
27
libsqlite3-0 \
27
28
libxml2 \
@@ -153,6 +154,7 @@ COPY docker-php-source /usr/local/bin/
153
154
RUN set -xe \
154
155
&& buildDeps=" \
155
156
$PHP_EXTRA_BUILD_DEPS \
157
+ libargon2-0-dev \
156
158
libcurl4-openssl-dev \
157
159
libedit-dev \
158
160
libsqlite3-dev \
@@ -186,6 +188,8 @@ RUN set -xe \
186
188
--enable-mbstring \
187
189
# --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)
188
190
--enable-mysqlnd \
191
+ # https://wiki.php.net/rfc/argon2_password_hash (7.2+)
192
+ --with-password-argon2 \
189
193
\
190
194
--with-curl \
191
195
--with-libedit \
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y \
22
22
$PHPIZE_DEPS \
23
23
ca-certificates \
24
24
curl \
25
+ libargon2-0 \
25
26
libedit2 \
26
27
libsqlite3-0 \
27
28
libxml2 \
@@ -94,6 +95,7 @@ COPY docker-php-source /usr/local/bin/
94
95
RUN set -xe \
95
96
&& buildDeps=" \
96
97
$PHP_EXTRA_BUILD_DEPS \
98
+ libargon2-0-dev \
97
99
libcurl4-openssl-dev \
98
100
libedit-dev \
99
101
libsqlite3-dev \
@@ -127,6 +129,8 @@ RUN set -xe \
127
129
--enable-mbstring \
128
130
# --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)
129
131
--enable-mysqlnd \
132
+ # https://wiki.php.net/rfc/argon2_password_hash (7.2+)
133
+ --with-password-argon2 \
130
134
\
131
135
--with-curl \
132
136
--with-libedit \
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y \
22
22
$PHPIZE_DEPS \
23
23
ca-certificates \
24
24
curl \
25
+ libargon2-0 \
25
26
libedit2 \
26
27
libsqlite3-0 \
27
28
libxml2 \
@@ -95,6 +96,7 @@ COPY docker-php-source /usr/local/bin/
95
96
RUN set -xe \
96
97
&& buildDeps=" \
97
98
$PHP_EXTRA_BUILD_DEPS \
99
+ libargon2-0-dev \
98
100
libcurl4-openssl-dev \
99
101
libedit-dev \
100
102
libsqlite3-dev \
@@ -128,6 +130,8 @@ RUN set -xe \
128
130
--enable-mbstring \
129
131
# --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)
130
132
--enable-mysqlnd \
133
+ # https://wiki.php.net/rfc/argon2_password_hash (7.2+)
134
+ --with-password-argon2 \
131
135
\
132
136
--with-curl \
133
137
--with-libedit \
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y \
22
22
$PHPIZE_DEPS \
23
23
ca-certificates \
24
24
curl \
25
+ libargon2-0 \
25
26
libedit2 \
26
27
libsqlite3-0 \
27
28
libxml2 \
@@ -95,6 +96,7 @@ COPY docker-php-source /usr/local/bin/
95
96
RUN set -xe \
96
97
&& buildDeps=" \
97
98
$PHP_EXTRA_BUILD_DEPS \
99
+ libargon2-0-dev \
98
100
libcurl4-openssl-dev \
99
101
libedit-dev \
100
102
libsqlite3-dev \
@@ -128,6 +130,8 @@ RUN set -xe \
128
130
--enable-mbstring \
129
131
# --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)
130
132
--enable-mysqlnd \
133
+ # https://wiki.php.net/rfc/argon2_password_hash (7.2+)
134
+ --with-password-argon2 \
131
135
\
132
136
--with-curl \
133
137
--with-libedit \
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RUN apt-get update && apt-get install -y \
16
16
$PHPIZE_DEPS \
17
17
ca-certificates \
18
18
curl \
19
+ libargon2-0 \
19
20
libedit2 \
20
21
libsqlite3-0 \
21
22
libxml2 \
@@ -88,6 +89,7 @@ COPY docker-php-source /usr/local/bin/
88
89
RUN set -xe \
89
90
&& buildDeps=" \
90
91
$PHP_EXTRA_BUILD_DEPS \
92
+ libargon2-0-dev \
91
93
libcurl4-openssl-dev \
92
94
libedit-dev \
93
95
libsqlite3-dev \
@@ -121,6 +123,8 @@ RUN set -xe \
121
123
--enable-mbstring \
122
124
# --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)
123
125
--enable-mysqlnd \
126
+ # https://wiki.php.net/rfc/argon2_password_hash (7.2+)
127
+ --with-password-argon2 \
124
128
\
125
129
--with-curl \
126
130
--with-libedit \
Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ travisEnv=
52
52
for version in " ${versions[@]} " ; do
53
53
rcVersion=" ${version% -rc} "
54
54
55
+ # "7", "5", etc
56
+ majorVersion=" ${rcVersion%% .* } "
57
+ # "2", "1", "6", etc
58
+ minorVersion=" ${rcVersion# $majorVersion .} "
59
+ minorVersion=" ${minorVersion%% .* } "
60
+
55
61
# scrape the relevant API based on whether we're looking for pre-releases
56
62
apiUrl=" https://secure.php.net/releases/index.php?json&max=100&version=${rcVersion%% .* } "
57
63
apiJqExpr='
@@ -150,6 +156,11 @@ for version in "${versions[@]}"; do
150
156
if [ " $alpineVer " = ' 3.4' ]; then
151
157
sed -ri ' s!libressl!openssl!g' " $version /$suite /$variant /Dockerfile"
152
158
fi
159
+ if [ " $majorVersion " = ' 5' ] || [ " $majorVersion " = ' 7' -a " $minorVersion " -lt ' 2' ] || [ " $suite " = ' jessie' ]; then
160
+ # argon2 password hashing is only supported in 7.2+ and stretch+
161
+ sed -ri ' /argon2/d' " $version /$suite /$variant /Dockerfile"
162
+ # Alpine 3.7+ _should_ include an "argon2-dev" package, but we should cross that bridge when we come to it
163
+ fi
153
164
154
165
# automatic `-slim` for stretch
155
166
# TODO always add slim once jessie is removed
You can’t perform that action at this time.
0 commit comments