File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,12 @@ LABEL summary="${SUMMARY}" \
35
35
36
36
EXPOSE 3306
37
37
38
- # This image must forever use UID 27 for mysql user so our volumes are
39
- # safe in the future. This should *never* change, the last test is there
40
- # to make sure of that.
38
+ # This image must forever use UID 27 for mysql user so our volumes are safe in the future. This should *never* change.
39
+ # Instead of relying on the package, we will do the setup ourselves before the package is installed
40
+ RUN /usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || : && \
41
+ /usr/sbin/useradd -M -N -g mysql -o -r -d ${HOME} -s /sbin/nologin -c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || : && \
42
+ test "$(id mysql)" = "uid=27(mysql) gid=27(mysql) groups=27(mysql)"
43
+
41
44
RUN INSTALL_PKGS="policycoreutils rsync tar xz gettext hostname bind-utils groff-base ${NAME}${MARIADB_SHORT_VERSION}-server" && \
42
45
dnf install -y --setopt=tsflags=nodocs ${INSTALL_PKGS} && \
43
46
rpm -V ${INSTALL_PKGS} && \
You can’t perform that action at this time.
0 commit comments