File tree Expand file tree Collapse file tree 10 files changed +20
-0
lines changed Expand file tree Collapse file tree 10 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ RUN set -ex; \
107107 echo "mariadb-server" mysql-server/root_password_again password 'unused' ; \
108108 } | debconf-set-selections; \
109109 apt-get update; \
110+ # postinst script creates a datadir, so avoid creating it by faking its existance.
111+ mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; \
110112# mariadb-backup is installed at the same time so that `mysql-common` is only installed once from just mariadb repos
111113 apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat \
112114 ; \
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ RUN set -ex; \
107107 echo "mariadb-server" mysql-server/root_password_again password 'unused' ; \
108108 } | debconf-set-selections; \
109109 apt-get update; \
110+ # postinst script creates a datadir, so avoid creating it by faking its existance.
111+ mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; \
110112# mariadb-backup is installed at the same time so that `mysql-common` is only installed once from just mariadb repos
111113 apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat \
112114 ; \
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ RUN set -ex; \
109109 echo "mariadb-server-$MARIADB_MAJOR" mysql-server/root_password_again password 'unused' ; \
110110 } | debconf-set-selections; \
111111 apt-get update; \
112+ # postinst script creates a datadir, so avoid creating it by faking its existance.
113+ mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; \
112114# mariadb-backup is installed at the same time so that `mysql-common` is only installed once from just mariadb repos
113115 apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat \
114116 ; \
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ RUN set -ex; \
109109 echo "mariadb-server-$MARIADB_MAJOR" mysql-server/root_password_again password 'unused' ; \
110110 } | debconf-set-selections; \
111111 apt-get update; \
112+ # postinst script creates a datadir, so avoid creating it by faking its existance.
113+ mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; \
112114# mariadb-backup is installed at the same time so that `mysql-common` is only installed once from just mariadb repos
113115 apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat \
114116 ; \
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ RUN set -ex; \
109109 echo "mariadb-server-$MARIADB_MAJOR" mysql-server/root_password_again password 'unused' ; \
110110 } | debconf-set-selections; \
111111 apt-get update; \
112+ # postinst script creates a datadir, so avoid creating it by faking its existance.
113+ mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; \
112114# mariadb-backup is installed at the same time so that `mysql-common` is only installed once from just mariadb repos
113115 apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat \
114116 ; \
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ RUN set -ex; \
107107 echo "mariadb-server" mysql-server/root_password_again password 'unused' ; \
108108 } | debconf-set-selections; \
109109 apt-get update; \
110+ # postinst script creates a datadir, so avoid creating it by faking its existance.
111+ mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; \
110112# mariadb-backup is installed at the same time so that `mysql-common` is only installed once from just mariadb repos
111113 apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat \
112114 ; \
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ RUN set -ex; \
107107 echo "mariadb-server" mysql-server/root_password_again password 'unused' ; \
108108 } | debconf-set-selections; \
109109 apt-get update; \
110+ # postinst script creates a datadir, so avoid creating it by faking its existance.
111+ mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; \
110112# mariadb-backup is installed at the same time so that `mysql-common` is only installed once from just mariadb repos
111113 apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat \
112114 ; \
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ RUN set -ex; \
107107 echo "mariadb-server" mysql-server/root_password_again password 'unused' ; \
108108 } | debconf-set-selections; \
109109 apt-get update; \
110+ # postinst script creates a datadir, so avoid creating it by faking its existance.
111+ mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; \
110112# mariadb-backup is installed at the same time so that `mysql-common` is only installed once from just mariadb repos
111113 apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat \
112114 ; \
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ RUN set -ex; \
107107 echo "mariadb-server" mysql-server/root_password_again password 'unused' ; \
108108 } | debconf-set-selections; \
109109 apt-get update; \
110+ # postinst script creates a datadir, so avoid creating it by faking its existance.
111+ mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; \
110112# mariadb-backup is installed at the same time so that `mysql-common` is only installed once from just mariadb repos
111113 apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat \
112114 ; \
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ RUN set -ex; \
109109 echo "mariadb-server-$MARIADB_MAJOR" mysql-server/root_password_again password 'unused' ; \
110110 } | debconf-set-selections; \
111111 apt-get update; \
112+ # postinst script creates a datadir, so avoid creating it by faking its existance.
113+ mkdir -p /var/lib/mysql/mysql ; touch /var/lib/mysql/mysql/user.frm ; \
112114# mariadb-backup is installed at the same time so that `mysql-common` is only installed once from just mariadb repos
113115 apt-get install -y --no-install-recommends mariadb-server="$MARIADB_VERSION" mariadb-backup socat \
114116 ; \
You can’t perform that action at this time.
0 commit comments