mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
piwik: update to php 7
This commit is contained in:
parent
1483d059c0
commit
56cd101245
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.3
|
FROM alpine:edge
|
||||||
MAINTAINER Wonderfall <wonderfall@mondedie.fr>
|
MAINTAINER Wonderfall <wonderfall@mondedie.fr>
|
||||||
|
|
||||||
ARG VERSION=2.16.1
|
ARG VERSION=2.16.1
|
||||||
@ -9,33 +9,42 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re
|
|||||||
&& echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
&& echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
||||||
&& apk -U add \
|
&& apk -U add \
|
||||||
nginx \
|
nginx \
|
||||||
php-fpm \
|
|
||||||
php-gd \
|
|
||||||
php-curl \
|
|
||||||
php-cli \
|
|
||||||
php-json \
|
|
||||||
php-ctype \
|
|
||||||
php-iconv \
|
|
||||||
php-zlib \
|
|
||||||
php-dom \
|
|
||||||
php-openssl \
|
|
||||||
php-geoip@testing \
|
|
||||||
php-mysqli \
|
|
||||||
php-pdo_mysql \
|
|
||||||
supervisor \
|
supervisor \
|
||||||
|
libwebp \
|
||||||
|
git \
|
||||||
|
autoconf \
|
||||||
|
build-base \
|
||||||
|
geoip \
|
||||||
|
geoip-dev \
|
||||||
tini@commuedge \
|
tini@commuedge \
|
||||||
&& sed -i 's/;always_populate_raw_post_data/always_populate_raw_post_data/g' /etc/php/php.ini \
|
php7-fpm@testing \
|
||||||
&& echo 'geoip.custom_directory=/piwik/misc' >> /etc/php/php.ini \
|
php7-gd@testing \
|
||||||
&& rm -f /var/cache/apk/*
|
php7-curl@testing \
|
||||||
|
php7-session@testing \
|
||||||
|
php7-json@testing \
|
||||||
|
php7-ctype@testing \
|
||||||
|
php7-mbstring@testing \
|
||||||
|
php7-iconv@testing \
|
||||||
|
php7-zlib@testing \
|
||||||
|
php7-dom@testing \
|
||||||
|
php7-openssl@testing \
|
||||||
|
php7-mysqli@testing \
|
||||||
|
php7-pdo_mysql@testing \
|
||||||
|
php7-dev@testing \
|
||||||
|
php7-pear@testing \
|
||||||
|
&& cd /tmp && git clone https://github.com/Zakay/geoip && cd geoip \
|
||||||
|
&& phpize7 && ./configure --with-php-config=/usr/bin/php-config7 && make && make install \
|
||||||
|
&& echo 'geoip.custom_directory=/piwik/misc' >> /etc/php7/php.ini \
|
||||||
|
&& apk del git autoconf build-base php7-dev php7-pear geoip-dev \
|
||||||
|
&& rm -rf /var/cache/apk/* /tmp/*
|
||||||
|
|
||||||
RUN wget -qO- http://builds.piwik.org/piwik-$VERSION.tar.gz | tar xz
|
RUN wget -qO- http://builds.piwik.org/piwik-$VERSION.tar.gz | tar xz \
|
||||||
|
&& wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -P /piwik/misc \
|
||||||
RUN wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz -P /piwik/misc \
|
|
||||||
&& gzip -d /piwik/misc/GeoLiteCity.dat.gz \
|
&& gzip -d /piwik/misc/GeoLiteCity.dat.gz \
|
||||||
&& mv /piwik/misc/GeoLiteCity.dat /piwik/misc/GeoIPCity.dat
|
&& mv /piwik/misc/GeoLiteCity.dat /piwik/misc/GeoIPCity.dat
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY php-fpm.conf /etc/php/php-fpm.conf
|
COPY php-fpm.conf /etc/php7/php-fpm.conf
|
||||||
COPY supervisord.conf /usr/local/etc/supervisord.conf
|
COPY supervisord.conf /usr/local/etc/supervisord.conf
|
||||||
COPY run.sh /usr/local/bin/run.sh
|
COPY run.sh /usr/local/bin/run.sh
|
||||||
|
|
||||||
@ -48,3 +57,4 @@ LABEL description "Open web analytics platform" \
|
|||||||
piwik "Piwik v$VERSION"
|
piwik "Piwik v$VERSION"
|
||||||
|
|
||||||
CMD ["tini","--","run.sh"]
|
CMD ["tini","--","run.sh"]
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
nodaemon=true
|
nodaemon=true
|
||||||
|
|
||||||
[program:php-fpm]
|
[program:php-fpm]
|
||||||
command=php-fpm
|
command=php-fpm7
|
||||||
|
|
||||||
[program:nginx]
|
[program:nginx]
|
||||||
command=nginx
|
command=nginx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user