From 518a2fd4c21d99f3dd8abe84baf0b5e5d3434a51 Mon Sep 17 00:00:00 2001 From: Martin Montes Date: Wed, 3 Jul 2024 15:42:06 +0200 Subject: [PATCH] Specify "mysql" as container user to be compliant with RedHat container certification --- 10.11-ubi/Dockerfile | 1 + 10.6-ubi/Dockerfile | 1 + 11.4-ubi/Dockerfile | 1 + 11.5-ubi/Dockerfile | 1 + Dockerfile-ubi.template | 1 + 5 files changed, 5 insertions(+) diff --git a/10.11-ubi/Dockerfile b/10.11-ubi/Dockerfile index 272ae5fb..4d083da6 100644 --- a/10.11-ubi/Dockerfile +++ b/10.11-ubi/Dockerfile @@ -107,5 +107,6 @@ COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] +USER mysql EXPOSE 3306 CMD ["mariadbd"] diff --git a/10.6-ubi/Dockerfile b/10.6-ubi/Dockerfile index eaf6b179..8c48c835 100644 --- a/10.6-ubi/Dockerfile +++ b/10.6-ubi/Dockerfile @@ -108,5 +108,6 @@ COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] +USER mysql EXPOSE 3306 CMD ["mariadbd"] diff --git a/11.4-ubi/Dockerfile b/11.4-ubi/Dockerfile index 6ec10217..00f30172 100644 --- a/11.4-ubi/Dockerfile +++ b/11.4-ubi/Dockerfile @@ -107,5 +107,6 @@ COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] +USER mysql EXPOSE 3306 CMD ["mariadbd"] diff --git a/11.5-ubi/Dockerfile b/11.5-ubi/Dockerfile index ffc3aebc..7d71536f 100644 --- a/11.5-ubi/Dockerfile +++ b/11.5-ubi/Dockerfile @@ -107,5 +107,6 @@ COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] +USER mysql EXPOSE 3306 CMD ["mariadbd"] diff --git a/Dockerfile-ubi.template b/Dockerfile-ubi.template index ab6e6052..132e3db2 100644 --- a/Dockerfile-ubi.template +++ b/Dockerfile-ubi.template @@ -108,5 +108,6 @@ COPY docker-entrypoint.sh /usr/local/bin/ ENTRYPOINT ["docker-entrypoint.sh"] +USER mysql EXPOSE 3306 CMD ["mariadbd"]