У меня есть dockerfile по сборке matomo
Занимаюсь
билдом внутри контура
FROM central-mirror.ru/library/php:8.0-fpm-alpine3.15
LABEL maintainer="pierre@piwik.org"
ENV PHP_MEMORY_LIMIT=256M
RUN set -ex; \
\
apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
autoconf \
freetype-dev \
icu-dev \
libjpeg-turbo-dev \
libpng-dev \
libzip-dev \
openldap-dev \
pcre-dev \
procps \
; \
\
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure ldap; \
docker-php-ext-install -j "$(nproc)" \
gd \
bcmath \
ldap \
mysqli \
opcache \
pdo_mysql \
zip \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.20; \
pecl install redis-5.3.6; \
\
docker-php-ext-enable \
apcu \
redis \
; \
rm -r /tmp/pear; \
\
runDeps="$( \
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
| tr ',' '\n' \
| sort -u \
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
)"; \
apk add --virtual .matomo-phpext-rundeps $runDeps; \
apk del .build-deps
# set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php
RUN { \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=2'; \
echo 'opcache.fast_shutdown=1'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
ENV MATOMO_VERSION 4.10.0
# remote repo
#ENV REPO="https://builds.matomo.org"
ENV REPO="https://inside.rep.ru/artifactory/builds.matomo.org"
RUN set -ex; \
apk add --no-cache --virtual .fetch-deps \
gnupg \
; \
\
curl -kfsSL -o matomo.tar.gz \
"${REPO}/matomo-${MATOMO_VERSION}.tar.gz"; \
curl -kfsSL -o matomo.tar.gz.asc \
"${REPO}/matomo-${MATOMO_VERSION}.tar.gz.asc"; \
# export GNUPGHOME="$(mktemp -d)"; \
# gpg --batch --keyserver keyserver.ubuntu.com --recv-keys F529A27008477483777FC23D63BB30D0E5D2C749; \
# gpg --batch --verify matomo.tar.gz.asc matomo.tar.gz; \
# gpgconf --kill all; \
# rm -rf "$GNUPGHOME" matomo.tar.gz.asc; \
tar -xf matomo.tar.gz -C /usr/src/; \
rm matomo.tar.gz; \
apk del .fetch-deps
COPY docker/test/alpine/php.ini /usr/local/etc/php/conf.d/php-matomo.ini
COPY docker/test/alpine/docker-entrypoint.sh /entrypoint.sh
# WORKDIR is /var/www/html (inherited via "FROM php")
# "/entrypoint.sh" will populate it at container startup from /usr/src/matomo
VOLUME /var/www/html
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]
возникла проблема с
+ pecl install APCu-5.1.21
No releases available for package "pecl.php.net/APCu"
install failed
добавил в nexus pecl/apcu-5.1.21.tgz
как правильно прописать локальный repo?