@@ -63,12 +63,20 @@ RUN /usr/local/bin/apk-install \
6363 {{ provision.runRoleInline('php', role) }}
6464{% - endmacro %}
6565
66-
67- {% macro debianDotDeb (distribution ,role ='' ) -%}
68- # Install php environment
69- RUN echo "deb http://packages.dotdeb.org {{ distribution }} all" >> /etc/apt/sources.list \
70- && echo "deb-src http://packages.dotdeb.org {{ distribution }} all" >> /etc/apt/sources.list \
71- && wget -O- https://www.dotdeb.org/dotdeb.gpg | apt-key add - \
66+ {% macro debianSury (distribution ,role ='' ) -%}
67+ RUN /usr/local/bin/apt-install apt-transport-https lsb-release \
68+ && echo "deb https://packages.sury.org/php/ {{ distribution }} main" >> /etc/apt/sources.list \
69+ && echo "deb http://ftp2.de.debian.org/debian/ testing main" >> /etc/apt/sources.list \
70+ && echo "deb-src http://ftp2.de.debian.org/debian/ testing main" >> /etc/apt/sources.list \
71+ && wget -O- https://packages.sury.org/php/apt.gpg | apt-key add - \
72+ && echo "Package: *" > /etc/apt/preferences.d/debian_testing.pref \
73+ && echo "Pin: origin ftp2.de.debian.org" >> /etc/apt/preferences.d/debian_testing.pref \
74+ && echo "Pin-Priority: -10" >> /etc/apt/preferences.d/debian_testing.pref \
75+ && echo "Package: libpcre3" > /etc/apt/preferences.d/libpcre.pref \
76+ && echo "Pin: release a=testing" >> /etc/apt/preferences.d/libpcre.pref \
77+ && echo "Pin-Priority: 995" >> /etc/apt/preferences.d/libpcre.pref \
78+ && apt-get update \
79+ && apt-get -t testing install -y -f libpcre3 \
7280 && /usr/local/bin/apt-install \
7381 # Install tools
7482 imagemagick \
@@ -94,7 +102,6 @@ RUN echo "deb http://packages.dotdeb.org {{ distribution }} all" >> /etc/apt/sou
94102 {{ provision.runRoleInline('php', role) }}
95103{% - endmacro %}
96104
97-
98105{% macro debian 9(role ='' ) -%}
99106# Install php environment
100107RUN /usr/local/bin/apt-install \
0 commit comments