Skip to content

Commit 3754331

Browse files
FaramosCZphracek
authored andcommitted
[minimization] Disable installation of weak dependencies by DNF
otherwise 'mariadb-server' and 'mariadb-client' brings in (among others) the 'mariadb-server-utils' and 'mariadb-client-utils' which brings in the Perl stack. If any of the sub-packages is later deemed useful to have present in the container image, we can add them case by case. Before: Total download size: 31 M Installed size: 155 M After: Total download size: 16 M Installed size: 106 M List of tools in the respective sub-packages: | mariadb-client-utils: | | mariadb-access Checks user access privileges based on the contents of the grant tables. | mariadb-find-rows Extracts and prints SQL statements that match a specified condition. | mysql_find_rows Retrieves and displays SELECT results from SQL input based on given criteria. | mysqlaccess A diagnostic tool for checking access rights to a MariaDB/MySQL server. | | mariadb-server-utils: | | mariadb-convert-table-format Converts all tables in a database to a specified storage engine. | mysql_convert_table_format symlink to ^ | mariadb-dumpslow Summarizes and sorts slow query logs to identify performance bottlenecks. | mysqldumpslow symlink to ^ | mariadb-fix-extensions Renames table files with incorrect or outdated file name extensions. | mysql_fix_extensions symlink to ^ | mariadb-hotcopy Quickly copies a database by locking tables and copying the data files. | mysqlhotcopy symlink to ^ | mariadb-setpermission Interactive script to set up user permissions easily. | mysql_setpermission symlink to ^ | mariadbd-multi Manages multiple MariaDB server instances running on the same machine. | mysqld_multi symlink to ^ The following utilites were part of the mariadb-server-utils for a long time, but were moved to mariadb-server recently, in this commit: https://src.fedoraproject.org/rpms/mariadb10.11/c/752c65a873f339e46ab9f7ca8443a58e9c04a530?branch=rawhide | mariadb-upgrade Upgrades system tables and checks/repairs tables after a version upgrade. | mysql_upgrade symlink to ^ | perror Displays error message descriptions for MariaDB/MySQL error codes.
1 parent 057210f commit 3754331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

10.11/Dockerfile.fedora

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN /usr/sbin/groupadd -g 27 -o -r mysql && \
4343
/usr/sbin/useradd -M -N -g mysql -o -r -d ${HOME} -s /sbin/nologin -c "MySQL Server" -u 27 mysql && \
4444
test "$(id mysql)" = "uid=27(mysql) gid=27(mysql) groups=27(mysql)" && \
4545
INSTALL_PKGS="policycoreutils rsync tar gettext hostname bind-utils groff-base" && \
46-
dnf install -y --setopt=tsflags=nodocs ${INSTALL_PKGS} ${NAME}${MYSQL_VERSION}-server && \
46+
dnf install -y --setopt=tsflags=nodocs --setopt=install_weak_deps=False ${INSTALL_PKGS} ${NAME}${MYSQL_VERSION}-server && \
4747
/usr/libexec/mysqld -V | grep -qe "${MYSQL_VERSION}\." && echo "Found VERSION ${MYSQL_VERSION}" && \
4848
dnf -y clean all --enablerepo='*' && \
4949
mkdir -p ${HOME}/data && chown -R mysql:root ${HOME} && \

0 commit comments

Comments
 (0)