Skip to content

Commit b15c04e

Browse files
htuschermblaschke
authored andcommitted
[FIX] switch from dotdeb to sury and install libpcre3 from testing (#96)
1 parent 9469322 commit b15c04e

File tree

5 files changed

+31
-15
lines changed

5 files changed

+31
-15
lines changed

docker/php-dev/debian-8-php7/Dockerfile.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
{{ docker.copy('conf/', '/opt/docker/') }}
66

7-
{{ php7dev.debianDotDeb() }}
7+
{{ php7dev.debianSury() }}

docker/php/debian-8-php7/Dockerfile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,19 @@ ENV WEB_ALIAS_DOMAIN *.vm
1717
COPY conf/ /opt/docker/
1818

1919
# Install php environment
20-
RUN echo "deb http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list \
21-
&& echo "deb-src http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list \
22-
&& wget -O- https://www.dotdeb.org/dotdeb.gpg | apt-key add - \
20+
RUN /usr/local/bin/apt-install apt-transport-https lsb-release \
21+
&& echo "deb https://packages.sury.org/php/ jessie main" >> /etc/apt/sources.list \
22+
&& echo "deb http://ftp2.de.debian.org/debian/ testing main" >> /etc/apt/sources.list \
23+
&& echo "deb-src http://ftp2.de.debian.org/debian/ testing main" >> /etc/apt/sources.list \
24+
&& wget -O- https://packages.sury.org/php/apt.gpg | apt-key add - \
25+
&& echo "Package: *" > /etc/apt/preferences.d/debian_testing.pref \
26+
&& echo "Pin: origin ftp2.de.debian.org" >> /etc/apt/preferences.d/debian_testing.pref \
27+
&& echo "Pin-Priority: -10" >> /etc/apt/preferences.d/debian_testing.pref \
28+
&& echo "Package: libpcre3" > /etc/apt/preferences.d/libpcre.pref \
29+
&& echo "Pin: release a=testing" >> /etc/apt/preferences.d/libpcre.pref \
30+
&& echo "Pin-Priority: 995" >> /etc/apt/preferences.d/libpcre.pref \
31+
&& apt-get update \
32+
&& apt-get -t testing install -y -f libpcre3 \
2333
&& /usr/local/bin/apt-install \
2434
# Install tools
2535
imagemagick \

docker/php/debian-8-php7/Dockerfile.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
{{ docker.copy('conf/', '/opt/docker/') }}
88

9-
{{ php7.debianDotDeb('jessie') }}
9+
{{ php7.debianSury('jessie') }}
1010

1111
{{ docker.expose('9000') }}

template/Dockerfile/images/php7-dev.jinja2

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ RUN /usr/local/bin/apt-install \
3232
{{ provision.runRoleInline('php-dev', role) }}
3333
{%- endmacro %}
3434

35-
{% macro debianDotDeb(role='') -%}
35+
{% macro debianSury(role='') -%}
3636
# Install development environment
3737
RUN /usr/local/bin/apt-install \
3838
# Install tools
3939
graphviz \
4040
# Install php development stuff
41-
php7.0-xdebug \
41+
# php7.0-xdebug \ # Is currently not available
4242
{{ provision.runRoleInline('php-dev', role) }}
4343
{%- endmacro %}
4444

45-
4645
{% macro ubuntu(role='') -%}
4746
# Install development environment
4847
RUN /usr/local/bin/apt-install \

template/Dockerfile/images/php7.jinja2

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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 debian9(role='') -%}
99106
# Install php environment
100107
RUN /usr/local/bin/apt-install \

0 commit comments

Comments
 (0)