From 0352bb261e81a18a318759cfc89668f8b8538471 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9s=20Maldonado?= <amaldona@etu.utc.fr>
Date: Mon, 6 Apr 2020 04:37:00 +0200
Subject: [PATCH] [pica-etherpad-db] Correct permissions inside the container

---
 pica-etherpad-db/Dockerfile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/pica-etherpad-db/Dockerfile b/pica-etherpad-db/Dockerfile
index 179b0aec..f8dc06e0 100644
--- a/pica-etherpad-db/Dockerfile
+++ b/pica-etherpad-db/Dockerfile
@@ -1,4 +1,8 @@
 FROM mysql:8
 
 COPY config/limit_binary_log.cnf /etc/mysql/conf.d/limit_binary_log.cnf
-#
+
+# By default, COPY uses permissions `-rw-rw-rw-` for the file inside
+# the container. But mysql refuses to use config files that are world-
+# writable, so we have to change those permissions:
+RUN chmod 644 /etc/mysql/conf.d/limit_binary_log.cnf
-- 
GitLab