Skip to content

Commit

Permalink
Merge pull request #130 from movabletype/mysql84_for_fedora41
Browse files Browse the repository at this point in the history
Mysql84 for fedora41
  • Loading branch information
charsbar authored Nov 27, 2024
2 parents 0476f8d + 0f96f8a commit 45ecfbd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Dockerfile to test MT.
|fedora37|fedora:37|*5.36.1*|*8.1.25*|8.0.35|3.0.9|-|
|fedora39|fedora:39|5.38.2|*8.2.24*|8.0.39|3.1.4|-|
|fedora40|fedora:40|*5.38.2*|8.3.12|*8.0.39*|3.2.2|-|
|fedora41|fedora:41|*5.40.0*|*8.3.12*|*8.0.39*|3.2.2|-|
|fedora41|fedora:41|*5.40.0*|*8.3.14*|*8.4.3*|3.2.2|-|
|cloud6 (\*1)|centos:7|*5.28.2*|*7.4.33*|*5.7.44*|1.0.2k|-|
|cloud7 (\*1)|rockylinux:9|5.38.2|8.2.24|MariaDB 10.5.22|3.0.7|-|

Expand Down
21 changes: 10 additions & 11 deletions bin/update_dockerfile.pl
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@
base => 'centos',
yum => {
_replace => {
'mysql' => 'community-mysql',
'mysql-server' => 'community-mysql-server',
'mysql-devel' => 'community-mysql-devel',
'mysql' => '',
'mysql-server' => '',
'mysql-devel' => '',
'procps' => 'perl-Unix-Process',
'phpunit' => '',
},
Expand All @@ -230,16 +230,15 @@
# package is broken for unknown reason
GraphicsMagick => '1.3.43',
},
# repo => {
# mysql84 => [qw(mysql-community-server mysql-community-client mysql-community-libs-compat mysql-community-libs mysql-community-devel)],
# },
# mysql84 => {
# rpm => 'https://dev.mysql.com/get/mysql84-community-release-fc40-1.noarch.rpm',
# enable => 'mysql-8.4-lts-community',
# },
repo => {
mysql84 => [qw(mysql-community-server mysql-community-client mysql-community-libs-compat mysql-community-libs mysql-community-devel)],
},
mysql84 => {
rpm => 'https://dev.mysql.com/get/mysql84-community-release-fc40-1.noarch.rpm',
enable => 'mysql-8.4-lts-community',
},
patch => ['Imager-1.024', 'Test-mysqld-1.0020'],
installer => 'dnf',
setcap => 1,
phpunit => 9,
},
fedora40 => {
Expand Down
6 changes: 4 additions & 2 deletions fedora41/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ COPY ./patch/ /root/patch/

RUN dnf -y install\
distribution-gpg-keys glibc-langpack-en glibc-langpack-ja xz git make cmake gcc clang curl perl perl-core tar zip unzip bzip2 which perl-Unix-Process postfix\
community-mysql-devel community-mysql-server community-mysql\
vim nano\
libomp-devel ImageMagick-perl perl-GD GraphicsMagick-perl netpbm-progs ImageMagick GraphicsMagick giflib-devel libpng-devel libjpeg-devel gd-devel libwebp-devel icc-profiles-openicc\
libxml2-devel expat-devel openssl-devel openssl gmp-devel\
php php-mysqlnd php-gd php-mbstring php-pecl-memcache\
ruby ruby-devel\
mod_ssl vsftpd ftp memcached\
&&\
dnf -y install https://dev.mysql.com/get/mysql84-community-release-fc40-1.noarch.rpm &&\
dnf -y --enablerepo=mysql-8.4-lts-community install\
mysql-community-server mysql-community-client mysql-community-libs-compat mysql-community-libs mysql-community-devel\
&& dnf clean --enablerepo=mysql-8.4-lts-community all &&\
dnf -y update --skip-unavailable &&\
dnf clean all && rm -rf /var/cache/dnf &&\
mkdir src && cd src &&\
curl -LO https://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.43/GraphicsMagick-1.3.43.tar.xz &&\
tar xf GraphicsMagick-1.3.43.tar.xz && cd GraphicsMagick-1.3.43 &&\
./configure --prefix=/usr --enable-shared --with-perl --disable-opencl --disable-dependency-tracking --without-x --without-ttf --without-wmf --without-magick-plus-plus --without-bzlib --without-zlib --without-dps --without-fpx --without-jpig --without-lcms2 --without-lzma --without-xml --without-gs --with-quantum-depth=16 && make && make install && cd PerlMagick && perl Makefile.PL && make install && cd ../.. &&\
cd .. && rm -rf src && ldconfig /usr/local/lib &&\
setcap -r /usr/libexec/mysqld &&\
curl -sL https://phar.phpunit.de/phpunit-9.phar > phpunit && chmod +x phpunit &&\
mv phpunit /usr/local/bin/ &&\
(curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh | bash) &&\
Expand Down

0 comments on commit 45ecfbd

Please sign in to comment.