[info=7ba6766dd5aec28047796e4159d55d05]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/mariadb-image?expand=0&rev=7
This commit is contained in:
@@ -38,7 +38,7 @@ LABEL org.opensuse.release-stage="released"
|
||||
|
||||
# endlabelprefix
|
||||
|
||||
RUN set -euo pipefail; zypper -n in --no-recommends mariadb mariadb-tools gawk timezone util-linux; zypper -n clean; rm -rf /var/log/*
|
||||
RUN set -euo pipefail; zypper -n in --no-recommends mariadb mariadb-tools gawk timezone util-linux pwgen; zypper -n clean; rm -rf /var/log/*
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
CMD ["mariadbd"]
|
||||
EXPOSE 3306
|
||||
@@ -49,7 +49,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
|
||||
RUN set -euo pipefail; chmod 755 /usr/local/bin/docker-entrypoint.sh
|
||||
RUN set -euo pipefail; ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
|
||||
|
||||
RUN set -euo pipefail; sed -i 's#gosu mysql#su mysql -s /bin/bash -m#g' /usr/local/bin/docker-entrypoint.sh
|
||||
RUN set -euo pipefail; sed -i -e 's,exec gosu mysql ,exec setpriv --reuid=mysql --regid=mysql --clear-groups -- /bin/bash ,g' /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
# Ensure all logs goes to stdout
|
||||
RUN set -euo pipefail; sed -i 's/^log/#log/g' /etc/my.cnf
|
||||
|
Reference in New Issue
Block a user