Skip to content

Commit 7f2d748

Browse files
authored
Merge remote-tracking branch 'origin/master' into copilot/fix-docker-image-relationship
Co-authored-by: Kanti <471387+Kanti@users.noreply.github.com>
2 parents 62f7eab + 5a1a417 commit 7f2d748

17 files changed

Lines changed: 46 additions & 1 deletion

File tree

‎docker/php-official/8.2-alpine/Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ RUN set -x \
151151
&& git clone --branch latest --depth 1 https://github.com/php-amqp/php-amqp.git /usr/src/php/ext/amqp \
152152
&& cd /usr/src/php/ext/amqp && git submodule update --init \
153153
&& docker-php-ext-configure ldap \
154+
&& docker-php-ext-configure ftp --with-openssl-dir \
154155
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
155156
&& docker-php-ext-install \
156157
bcmath \

‎docker/php-official/8.2/Dockerfile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ RUN set -x \
130130
librabbitmq-dev \
131131
libmagick++-dev \
132132
libgmp-dev \
133+
libssl-dev \
133134
# Install guetzli
134135
&& wget https://github.com/google/guetzli/archive/master.zip \
135136
&& unzip master.zip \
@@ -146,6 +147,7 @@ RUN set -x \
146147
&& cd /usr/src/php/ext/amqp && git submodule update --init \
147148
&& git clone --branch master --depth 1 https://github.com/Imagick/imagick.git /usr/src/php/ext/imagick \
148149
&& docker-php-ext-configure ldap \
150+
&& docker-php-ext-configure ftp --with-openssl-dir \
149151
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
150152
&& docker-php-ext-install \
151153
bcmath \
@@ -215,6 +217,7 @@ RUN set -x \
215217
librabbitmq-dev \
216218
libmagick++-dev \
217219
libgmp-dev \
220+
libssl-dev \
218221
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
219222
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
220223
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \

‎docker/php-official/8.3-alpine/Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ RUN set -x \
151151
&& git clone --branch latest --depth 1 https://github.com/php-amqp/php-amqp.git /usr/src/php/ext/amqp \
152152
&& cd /usr/src/php/ext/amqp && git submodule update --init \
153153
&& docker-php-ext-configure ldap \
154+
&& docker-php-ext-configure ftp --with-openssl-dir \
154155
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
155156
&& docker-php-ext-install \
156157
bcmath \

‎docker/php-official/8.3/Dockerfile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ RUN set -x \
130130
librabbitmq-dev \
131131
libmagick++-dev \
132132
libgmp-dev \
133+
libssl-dev \
133134
# Install guetzli
134135
&& wget https://github.com/google/guetzli/archive/master.zip \
135136
&& unzip master.zip \
@@ -146,6 +147,7 @@ RUN set -x \
146147
&& cd /usr/src/php/ext/amqp && git submodule update --init \
147148
&& git clone --branch master --depth 1 https://github.com/Imagick/imagick.git /usr/src/php/ext/imagick \
148149
&& docker-php-ext-configure ldap \
150+
&& docker-php-ext-configure ftp --with-openssl-dir \
149151
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
150152
&& docker-php-ext-install \
151153
bcmath \
@@ -215,6 +217,7 @@ RUN set -x \
215217
librabbitmq-dev \
216218
libmagick++-dev \
217219
libgmp-dev \
220+
libssl-dev \
218221
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
219222
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
220223
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \

‎docker/php-official/8.4-alpine/Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ RUN set -x \
151151
&& git clone --branch latest --depth 1 https://github.com/php-amqp/php-amqp.git /usr/src/php/ext/amqp \
152152
&& cd /usr/src/php/ext/amqp && git submodule update --init \
153153
&& docker-php-ext-configure ldap \
154+
&& docker-php-ext-configure ftp --with-ftp-ssl \
154155
&& docker-php-ext-install \
155156
bcmath \
156157
bz2 \

‎docker/php-official/8.4/Dockerfile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ RUN set -x \
130130
librabbitmq-dev \
131131
libmagick++-dev \
132132
libgmp-dev \
133+
libssl-dev \
133134
# Install guetzli
134135
&& wget https://github.com/google/guetzli/archive/master.zip \
135136
&& unzip master.zip \
@@ -146,6 +147,7 @@ RUN set -x \
146147
&& cd /usr/src/php/ext/amqp && git submodule update --init \
147148
&& git clone --branch master --depth 1 https://github.com/Imagick/imagick.git /usr/src/php/ext/imagick \
148149
&& docker-php-ext-configure ldap \
150+
&& docker-php-ext-configure ftp --with-ftp-ssl \
149151
&& docker-php-ext-install \
150152
bcmath \
151153
amqp \
@@ -213,6 +215,7 @@ RUN set -x \
213215
librabbitmq-dev \
214216
libmagick++-dev \
215217
libgmp-dev \
218+
libssl-dev \
216219
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
217220
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
218221
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \

‎docker/php-official/8.5-alpine/Dockerfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ RUN set -x \
151151
&& git clone --branch latest --depth 1 https://github.com/php-amqp/php-amqp.git /usr/src/php/ext/amqp \
152152
&& cd /usr/src/php/ext/amqp && git submodule update --init \
153153
&& docker-php-ext-configure ldap \
154+
&& docker-php-ext-configure ftp --with-ftp-ssl \
154155
&& docker-php-ext-install \
155156
bcmath \
156157
bz2 \

‎docker/php-official/8.5/Dockerfile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ RUN set -x \
130130
librabbitmq-dev \
131131
libmagick++-dev \
132132
libgmp-dev \
133+
libssl-dev \
133134
# Install guetzli
134135
&& wget https://github.com/google/guetzli/archive/master.zip \
135136
&& unzip master.zip \
@@ -146,6 +147,7 @@ RUN set -x \
146147
&& cd /usr/src/php/ext/amqp && git submodule update --init \
147148
&& git clone --branch master --depth 1 https://github.com/Imagick/imagick.git /usr/src/php/ext/imagick \
148149
&& docker-php-ext-configure ldap \
150+
&& docker-php-ext-configure ftp --with-ftp-ssl \
149151
&& docker-php-ext-install \
150152
bcmath \
151153
amqp \
@@ -212,6 +214,7 @@ RUN set -x \
212214
librabbitmq-dev \
213215
libmagick++-dev \
214216
libgmp-dev \
217+
libssl-dev \
215218
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
216219
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
217220
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \

‎template/Dockerfile/images/php.jinja2‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
librabbitmq-dev \
5858
libmagick++-dev \
5959
libgmp-dev \
60+
{%- if version == '8.2' or version == '8.3' or version == '8.4' or version == '8.5' %}
61+
libssl-dev \
62+
{%- endif %}
6063
# Install guetzli
6164
&& wget https://github.com/google/guetzli/archive/master.zip \
6265
&& unzip master.zip \
@@ -73,6 +76,11 @@
7376
&& cd /usr/src/php/ext/amqp && git submodule update --init \
7477
&& git clone --branch master --depth 1 https://github.com/Imagick/imagick.git /usr/src/php/ext/imagick \
7578
&& docker-php-ext-configure ldap \
79+
{%- if version == '8.2' or version == '8.3' %}
80+
&& docker-php-ext-configure ftp --with-openssl-dir \
81+
{%- elif version == '8.4' or version == '8.5' %}
82+
&& docker-php-ext-configure ftp --with-ftp-ssl \
83+
{%- endif %}
7684
{%- if version != '8.4' and version != '8.5' %}
7785
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
7886
{%- endif %}
@@ -152,6 +160,9 @@
152160
librabbitmq-dev \
153161
libmagick++-dev \
154162
libgmp-dev \
163+
{%- if version == '8.2' or version == '8.3' or version == '8.4' or version == '8.5' %}
164+
libssl-dev \
165+
{%- endif %}
155166
&& rm -f /usr/local/etc/php-fpm.d/zz-docker.conf \
156167
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer2 \
157168
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer1 --1 \
@@ -234,6 +245,11 @@
234245
&& git clone --branch latest --depth 1 https://github.com/php-amqp/php-amqp.git /usr/src/php/ext/amqp \
235246
&& cd /usr/src/php/ext/amqp && git submodule update --init \
236247
&& docker-php-ext-configure ldap \
248+
{%- if version == '8.2' or version == '8.3' %}
249+
&& docker-php-ext-configure ftp --with-openssl-dir \
250+
{%- elif version == '8.4' or version == '8.5' %}
251+
&& docker-php-ext-configure ftp --with-ftp-ssl \
252+
{%- endif %}
237253
{%- if version != '8.4' and version != '8.5' %}
238254
&& PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
239255
{%- endif %}

‎tests/serverspec/spec/docker/php-apache-dev_spec.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
include_examples 'collection::bootstrap'
1111
include_examples 'collection::base'
1212
include_examples 'collection::base-app'
13+
include_examples 'php::modules::ftp_ssl' if $testConfiguration[:php] == 8
1314

1415
if ($testConfiguration[:php] == 5)
1516
include_examples 'collection::php5::development'

0 commit comments

Comments
 (0)