Skip to content

Commit fac4727

Browse files
committed
Fix pecl for alpine (with workaround)
Fixes #78
1 parent 240d140 commit fac4727

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

docker/php/alpine-3-php7/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ RUN /usr/local/bin/apk-install \
7676
&& pear upgrade-all \
7777
&& pear config-set auto_discover 1 \
7878
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
79+
# PECL workaround, see webdevops/Dockerfile#78
80+
&& sed -i "s/ -n / /" $(which pecl) \
7981
&& /opt/docker/bin/provision run --tag bootstrap --role webdevops-php \
8082
&& /opt/docker/bin/bootstrap.sh
8183

docker/php/alpine-3/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ RUN /usr/local/bin/apk-install \
7070
&& pear upgrade-all \
7171
&& pear config-set auto_discover 1 \
7272
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
73+
# PECL workaround, see webdevops/Dockerfile#78
74+
&& sed -i "s/ -n / /" $(which pecl) \
7375
&& /opt/docker/bin/provision run --tag bootstrap --role webdevops-php \
7476
&& /opt/docker/bin/bootstrap.sh
7577

template/Dockerfile/images/php5.jinja2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ RUN /usr/local/bin/apk-install \
5555
&& pear upgrade-all \
5656
&& pear config-set auto_discover 1 \
5757
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
58+
# PECL workaround, see webdevops/Dockerfile#78
59+
&& sed -i "s/ -n / /" $(which pecl) \
5860
{{ provision.runRoleInline('php', role) }}
5961
{%- endmacro %}
6062

template/Dockerfile/images/php7.jinja2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ RUN /usr/local/bin/apk-install \
6161
&& pear upgrade-all \
6262
&& pear config-set auto_discover 1 \
6363
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer \
64+
# PECL workaround, see webdevops/Dockerfile#78
65+
&& sed -i "s/ -n / /" $(which pecl) \
6466
{{ provision.runRoleInline('php', role) }}
6567
{%- endmacro %}
6668

0 commit comments

Comments
 (0)