Skip to content

Commit

Permalink
fix: pin dbd mysql version, also add some build tools (#54)
Browse files Browse the repository at this point in the history
* fix: pin dbd mysql version, also add some build tools

  * fixes #53

* fix: add flag for outdated dists
  • Loading branch information
gutmensch authored Feb 5, 2024
1 parent 36b5748 commit 7455b3a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ WORKDIR /

COPY ./manifest/ /

RUN set -x \
RUN set -e -x \
&& apk add -U \
bash \
cmake \
expat-dev \
g++ \
gpg \
gzip \
libpq \
libpq-dev \
Expand Down Expand Up @@ -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/.*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 \
&& (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 \
IO::Socket::SSL \
CPAN \
Expand All @@ -63,13 +65,16 @@ RUN set -x \
XML::Parser \
XML::Simple \
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 \
Socket \
Socket6 \
PerlIO::gzip \
; 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

Expand Down

0 comments on commit 7455b3a

Please sign in to comment.