mirror of
https://github.com/gutmensch/docker-dmarc-report.git
synced 2025-12-18 02:06:23 +00:00
fix: pin dbd mysql version, also add some build tools (#54)
* fix: pin dbd mysql version, also add some build tools * fixes #53 * fix: add flag for outdated dists
This commit is contained in:
parent
36b5748844
commit
7455b3a4bc
13
Dockerfile
13
Dockerfile
@ -13,11 +13,13 @@ WORKDIR /
|
|||||||
|
|
||||||
COPY ./manifest/ /
|
COPY ./manifest/ /
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -e -x \
|
||||||
&& apk add -U \
|
&& apk add -U \
|
||||||
bash \
|
bash \
|
||||||
|
cmake \
|
||||||
expat-dev \
|
expat-dev \
|
||||||
g++ \
|
g++ \
|
||||||
|
gpg \
|
||||||
gzip \
|
gzip \
|
||||||
libpq \
|
libpq \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
@ -46,7 +48,7 @@ RUN set -x \
|
|||||||
&& sed -i 's%.*root /var/www/html;% root /var/www/viewer;%g' /etc/nginx/nginx.conf \
|
&& sed -i 's%.*root /var/www/html;% root /var/www/viewer;%g' /etc/nginx/nginx.conf \
|
||||||
&& sed -i 's/.*index index.php index.html;/ index dmarcts-report-viewer.php;/g' /etc/nginx/nginx.conf \
|
&& sed -i 's/.*index index.php index.html;/ index dmarcts-report-viewer.php;/g' /etc/nginx/nginx.conf \
|
||||||
&& sed -i 's%files = /etc/supervisor.d/\*.ini%files = /etc/supervisor/conf.d/*.conf%g' /etc/supervisord.conf \
|
&& sed -i 's%files = /etc/supervisor.d/\*.ini%files = /etc/supervisor/conf.d/*.conf%g' /etc/supervisord.conf \
|
||||||
&& (echo y;echo o conf prerequisites_policy follow;echo o conf commit)|cpan \
|
&& (echo y;echo o conf allow_installing_outdated_dists yes;echo o conf prerequisites_policy follow;echo o conf commit)|cpan \
|
||||||
&& for i in \
|
&& for i in \
|
||||||
IO::Socket::SSL \
|
IO::Socket::SSL \
|
||||||
CPAN \
|
CPAN \
|
||||||
@ -63,13 +65,16 @@ RUN set -x \
|
|||||||
XML::Parser \
|
XML::Parser \
|
||||||
XML::Simple \
|
XML::Simple \
|
||||||
DBI \
|
DBI \
|
||||||
DBD::mysql \
|
# XXX: pinning to a version, which does not suffer from mariadb 10 version comparison issues
|
||||||
|
# TODO: replace with DBD::mysql again, when issue is resolved
|
||||||
|
# https://forum.bestpractical.com/t/mysql-dependency-error-with-mariadb-and-debian-12/38748/2
|
||||||
|
DVEEDEN/DBD-mysql-4.052.tar.gz \
|
||||||
DBD::Pg \
|
DBD::Pg \
|
||||||
Socket \
|
Socket \
|
||||||
Socket6 \
|
Socket6 \
|
||||||
PerlIO::gzip \
|
PerlIO::gzip \
|
||||||
; do cpan install $i; done \
|
; do cpan install $i; done \
|
||||||
&& apk del mariadb-dev expat-dev openssl-dev perl-dev g++ make musl-obstack-dev libpq-dev
|
&& apk del mariadb-dev expat-dev openssl-dev perl-dev g++ cmake make musl-obstack-dev libpq-dev
|
||||||
|
|
||||||
HEALTHCHECK --interval=1m --timeout=3s CMD curl --silent --fail http://127.0.0.1:80/fpm-ping
|
HEALTHCHECK --interval=1m --timeout=3s CMD curl --silent --fail http://127.0.0.1:80/fpm-ping
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user