This repository has been archived by the owner on Feb 11, 2024. It is now read-only.
forked from matomo-org/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
83 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM php:7.1-%%VARIANT%% | ||
FROM php:7.2-%%VARIANT%% | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
|
@@ -8,7 +8,6 @@ RUN set -ex; \ | |
$PHPIZE_DEPS \ | ||
autoconf \ | ||
freetype-dev \ | ||
geoip-dev \ | ||
icu-dev \ | ||
libjpeg-turbo-dev \ | ||
libpng-dev \ | ||
|
@@ -28,13 +27,11 @@ RUN set -ex; \ | |
; \ | ||
\ | ||
# pecl will claim success even if one install fails, so we need to perform each install separately | ||
pecl install APCu-5.1.12; \ | ||
pecl install geoip-1.1.1; \ | ||
pecl install APCu-5.1.17; \ | ||
pecl install redis-3.1.6; \ | ||
\ | ||
docker-php-ext-enable \ | ||
apcu \ | ||
geoip \ | ||
redis \ | ||
; \ | ||
\ | ||
|
@@ -59,7 +56,7 @@ RUN set -ex; \ | |
curl -fsSL -o piwik.tar.gz.asc \ | ||
"https://builds.matomo.org/piwik-${MATOMO_VERSION}.tar.gz.asc"; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 814E346FA01A20DBB04B6807B5DBD5925590A237; \ | ||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 814E346FA01A20DBB04B6807B5DBD5925590A237; \ | ||
gpg --batch --verify piwik.tar.gz.asc piwik.tar.gz; \ | ||
gpgconf --kill all; \ | ||
rm -rf "$GNUPGHOME" piwik.tar.gz.asc; \ | ||
|
@@ -70,8 +67,15 @@ RUN set -ex; \ | |
COPY php.ini /usr/local/etc/php/conf.d/php-piwik.ini | ||
|
||
RUN set -ex; \ | ||
curl -fsSL -o /usr/src/piwik/misc/GeoIPCity.dat.gz https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz; \ | ||
gunzip /usr/src/piwik/misc/GeoIPCity.dat.gz | ||
curl -fsSL -o GeoIPCity.tar.gz \ | ||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz"; \ | ||
curl -fsSL -o GeoIPCity.tar.gz.md5 \ | ||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz.md5"; \ | ||
echo "$(cat GeoIPCity.tar.gz.md5) GeoIPCity.tar.gz" | md5sum -c -; \ | ||
mkdir /usr/src/GeoIPCity; \ | ||
tar -xf GeoIPCity.tar.gz -C /usr/src/GeoIPCity --strip-components=1; \ | ||
mv /usr/src/GeoIPCity/GeoLite2-City.mmdb /usr/src/piwik/misc/GeoLite2-City.mmdb; \ | ||
rm -rf GeoIPCity* | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM php:7.1-%%VARIANT%% | ||
FROM php:7.2-%%VARIANT%% | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
|
@@ -9,7 +9,6 @@ RUN set -ex; \ | |
apt-get update; \ | ||
apt-get install -y --no-install-recommends \ | ||
libfreetype6-dev \ | ||
libgeoip-dev \ | ||
libjpeg-dev \ | ||
libldap2-dev \ | ||
libpng-dev \ | ||
|
@@ -28,13 +27,11 @@ RUN set -ex; \ | |
; \ | ||
\ | ||
# pecl will claim success even if one install fails, so we need to perform each install separately | ||
pecl install APCu-5.1.12; \ | ||
pecl install geoip-1.1.1; \ | ||
pecl install APCu-5.1.17; \ | ||
pecl install redis-3.1.6; \ | ||
\ | ||
docker-php-ext-enable \ | ||
apcu \ | ||
geoip \ | ||
redis \ | ||
; \ | ||
\ | ||
|
@@ -69,7 +66,7 @@ RUN set -ex; \ | |
curl -fsSL -o piwik.tar.gz.asc \ | ||
"https://builds.matomo.org/piwik-${MATOMO_VERSION}.tar.gz.asc"; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 814E346FA01A20DBB04B6807B5DBD5925590A237; \ | ||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 814E346FA01A20DBB04B6807B5DBD5925590A237; \ | ||
gpg --batch --verify piwik.tar.gz.asc piwik.tar.gz; \ | ||
gpgconf --kill all; \ | ||
rm -rf "$GNUPGHOME" piwik.tar.gz.asc; \ | ||
|
@@ -81,8 +78,15 @@ RUN set -ex; \ | |
COPY php.ini /usr/local/etc/php/conf.d/php-piwik.ini | ||
|
||
RUN set -ex; \ | ||
curl -fsSL -o /usr/src/piwik/misc/GeoIPCity.dat.gz https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz; \ | ||
gunzip /usr/src/piwik/misc/GeoIPCity.dat.gz | ||
curl -fsSL -o GeoIPCity.tar.gz \ | ||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz"; \ | ||
curl -fsSL -o GeoIPCity.tar.gz.md5 \ | ||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz.md5"; \ | ||
echo "$(cat GeoIPCity.tar.gz.md5) GeoIPCity.tar.gz" | md5sum -c -; \ | ||
mkdir /usr/src/GeoIPCity; \ | ||
tar -xf GeoIPCity.tar.gz -C /usr/src/GeoIPCity --strip-components=1; \ | ||
mv /usr/src/GeoIPCity/GeoLite2-City.mmdb /usr/src/piwik/misc/GeoLite2-City.mmdb; \ | ||
rm -rf GeoIPCity* | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM php:7.1-apache | ||
FROM php:7.2-apache | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
|
@@ -9,7 +9,6 @@ RUN set -ex; \ | |
apt-get update; \ | ||
apt-get install -y --no-install-recommends \ | ||
libfreetype6-dev \ | ||
libgeoip-dev \ | ||
libjpeg-dev \ | ||
libldap2-dev \ | ||
libpng-dev \ | ||
|
@@ -28,7 +27,7 @@ RUN set -ex; \ | |
; \ | ||
\ | ||
# pecl will claim success even if one install fails, so we need to perform each install separately | ||
pecl install APCu-5.1.12; \ | ||
pecl install APCu-5.1.17; \ | ||
pecl install redis-3.1.6; \ | ||
\ | ||
docker-php-ext-enable \ | ||
|
@@ -69,8 +68,8 @@ RUN set -ex; \ | |
curl -fsSL -o piwik.tar.gz.asc \ | ||
"https://builds.matomo.org/piwik-${MATOMO_VERSION}.tar.gz.asc"; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
gpg --no-tty --keyserver ha.pool.sks-keyservers.net --recv-keys 814E346FA01A20DBB04B6807B5DBD5925590A237; \ | ||
gpg --no-tty --batch --verify piwik.tar.gz.asc piwik.tar.gz; \ | ||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 814E346FA01A20DBB04B6807B5DBD5925590A237; \ | ||
gpg --batch --verify piwik.tar.gz.asc piwik.tar.gz; \ | ||
gpgconf --kill all; \ | ||
rm -rf "$GNUPGHOME" piwik.tar.gz.asc; \ | ||
tar -xzf piwik.tar.gz -C /usr/src/; \ | ||
|
@@ -81,16 +80,15 @@ RUN set -ex; \ | |
COPY php.ini /usr/local/etc/php/conf.d/php-piwik.ini | ||
|
||
RUN set -ex; \ | ||
curl -fsSL -o GeoLite2-City.tar.gz http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz; \ | ||
tar zxvf GeoLite2-City.tar.gz; \ | ||
mv GeoLite2-City_*/GeoLite2-City.mmdb /usr/src/piwik/misc/; \ | ||
rm -rf GeoLite2-City.tar.gz GeoLite2-City_* | ||
|
||
RUN set -ex; \ | ||
curl -fsSL -o GeoLite2-ASN.tar.gz http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz; \ | ||
tar zxvf GeoLite2-ASN.tar.gz; \ | ||
mv GeoLite2-ASN_*/GeoLite2-ASN.mmdb /usr/src/piwik/misc/; \ | ||
rm -rf GeoLite2-ASN.tar.gz GeoLite2-ASN_* | ||
curl -fsSL -o GeoIPCity.tar.gz \ | ||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz"; \ | ||
curl -fsSL -o GeoIPCity.tar.gz.md5 \ | ||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz.md5"; \ | ||
echo "$(cat GeoIPCity.tar.gz.md5) GeoIPCity.tar.gz" | md5sum -c -; \ | ||
mkdir /usr/src/GeoIPCity; \ | ||
tar -xf GeoIPCity.tar.gz -C /usr/src/GeoIPCity --strip-components=1; \ | ||
mv /usr/src/GeoIPCity/GeoLite2-City.mmdb /usr/src/piwik/misc/GeoLite2-City.mmdb; \ | ||
rm -rf GeoIPCity* | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM php:7.1-fpm-alpine | ||
FROM php:7.2-fpm-alpine | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
|
@@ -8,7 +8,6 @@ RUN set -ex; \ | |
$PHPIZE_DEPS \ | ||
autoconf \ | ||
freetype-dev \ | ||
geoip-dev \ | ||
icu-dev \ | ||
libjpeg-turbo-dev \ | ||
libpng-dev \ | ||
|
@@ -28,13 +27,11 @@ RUN set -ex; \ | |
; \ | ||
\ | ||
# pecl will claim success even if one install fails, so we need to perform each install separately | ||
pecl install APCu-5.1.12; \ | ||
pecl install geoip-1.1.1; \ | ||
pecl install APCu-5.1.17; \ | ||
pecl install redis-3.1.6; \ | ||
\ | ||
docker-php-ext-enable \ | ||
apcu \ | ||
geoip \ | ||
redis \ | ||
; \ | ||
\ | ||
|
@@ -47,7 +44,7 @@ RUN set -ex; \ | |
apk add --virtual .piwik-phpext-rundeps $runDeps; \ | ||
apk del .build-deps | ||
|
||
ENV MATOMO_VERSION 3.6.1 | ||
ENV MATOMO_VERSION 3.8.1 | ||
|
||
RUN set -ex; \ | ||
apk add --no-cache --virtual .fetch-deps \ | ||
|
@@ -59,7 +56,7 @@ RUN set -ex; \ | |
curl -fsSL -o piwik.tar.gz.asc \ | ||
"https://builds.matomo.org/piwik-${MATOMO_VERSION}.tar.gz.asc"; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 814E346FA01A20DBB04B6807B5DBD5925590A237; \ | ||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 814E346FA01A20DBB04B6807B5DBD5925590A237; \ | ||
gpg --batch --verify piwik.tar.gz.asc piwik.tar.gz; \ | ||
gpgconf --kill all; \ | ||
rm -rf "$GNUPGHOME" piwik.tar.gz.asc; \ | ||
|
@@ -70,8 +67,15 @@ RUN set -ex; \ | |
COPY php.ini /usr/local/etc/php/conf.d/php-piwik.ini | ||
|
||
RUN set -ex; \ | ||
curl -fsSL -o /usr/src/piwik/misc/GeoIPCity.dat.gz https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz; \ | ||
gunzip /usr/src/piwik/misc/GeoIPCity.dat.gz | ||
curl -fsSL -o GeoIPCity.tar.gz \ | ||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz"; \ | ||
curl -fsSL -o GeoIPCity.tar.gz.md5 \ | ||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz.md5"; \ | ||
echo "$(cat GeoIPCity.tar.gz.md5) GeoIPCity.tar.gz" | md5sum -c -; \ | ||
mkdir /usr/src/GeoIPCity; \ | ||
tar -xf GeoIPCity.tar.gz -C /usr/src/GeoIPCity --strip-components=1; \ | ||
mv /usr/src/GeoIPCity/GeoLite2-City.mmdb /usr/src/piwik/misc/GeoLite2-City.mmdb; \ | ||
rm -rf GeoIPCity* | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM php:7.1-fpm | ||
FROM php:7.2-fpm | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
|
@@ -9,7 +9,6 @@ RUN set -ex; \ | |
apt-get update; \ | ||
apt-get install -y --no-install-recommends \ | ||
libfreetype6-dev \ | ||
libgeoip-dev \ | ||
libjpeg-dev \ | ||
libldap2-dev \ | ||
libpng-dev \ | ||
|
@@ -28,13 +27,11 @@ RUN set -ex; \ | |
; \ | ||
\ | ||
# pecl will claim success even if one install fails, so we need to perform each install separately | ||
pecl install APCu-5.1.12; \ | ||
pecl install geoip-1.1.1; \ | ||
pecl install APCu-5.1.17; \ | ||
pecl install redis-3.1.6; \ | ||
\ | ||
docker-php-ext-enable \ | ||
apcu \ | ||
geoip \ | ||
redis \ | ||
; \ | ||
\ | ||
|
@@ -52,7 +49,7 @@ RUN set -ex; \ | |
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV MATOMO_VERSION 3.6.1 | ||
ENV MATOMO_VERSION 3.8.1 | ||
|
||
RUN set -ex; \ | ||
fetchDeps=" \ | ||
|
@@ -69,7 +66,7 @@ RUN set -ex; \ | |
curl -fsSL -o piwik.tar.gz.asc \ | ||
"https://builds.matomo.org/piwik-${MATOMO_VERSION}.tar.gz.asc"; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 814E346FA01A20DBB04B6807B5DBD5925590A237; \ | ||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 814E346FA01A20DBB04B6807B5DBD5925590A237; \ | ||
gpg --batch --verify piwik.tar.gz.asc piwik.tar.gz; \ | ||
gpgconf --kill all; \ | ||
rm -rf "$GNUPGHOME" piwik.tar.gz.asc; \ | ||
|
@@ -81,8 +78,15 @@ RUN set -ex; \ | |
COPY php.ini /usr/local/etc/php/conf.d/php-piwik.ini | ||
|
||
RUN set -ex; \ | ||
curl -fsSL -o /usr/src/piwik/misc/GeoIPCity.dat.gz https://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz; \ | ||
gunzip /usr/src/piwik/misc/GeoIPCity.dat.gz | ||
curl -fsSL -o GeoIPCity.tar.gz \ | ||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz"; \ | ||
curl -fsSL -o GeoIPCity.tar.gz.md5 \ | ||
"https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz.md5"; \ | ||
echo "$(cat GeoIPCity.tar.gz.md5) GeoIPCity.tar.gz" | md5sum -c -; \ | ||
mkdir /usr/src/GeoIPCity; \ | ||
tar -xf GeoIPCity.tar.gz -C /usr/src/GeoIPCity --strip-components=1; \ | ||
mv /usr/src/GeoIPCity/GeoLite2-City.mmdb /usr/src/piwik/misc/GeoLite2-City.mmdb; \ | ||
rm -rf GeoIPCity* | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
|
||
|