From c6feeaf302136f837b3bf7f6d82ae7353b5c28da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Maldonado?= <amaldona@etu.utc.fr> Date: Mon, 6 Apr 2020 03:48:22 +0200 Subject: [PATCH] [pica-etherpad-db] Init --- pica-etherpad-db/Dockerfile | 3 +++ pica-etherpad-db/README.md | 1 + pica-etherpad-db/clair-whitelist.yml | 1 + pica-etherpad-db/config/limit_binary_log.cnf | 2 ++ 4 files changed, 7 insertions(+) create mode 100644 pica-etherpad-db/Dockerfile create mode 100644 pica-etherpad-db/README.md create mode 100644 pica-etherpad-db/clair-whitelist.yml create mode 100644 pica-etherpad-db/config/limit_binary_log.cnf diff --git a/pica-etherpad-db/Dockerfile b/pica-etherpad-db/Dockerfile new file mode 100644 index 00000000..1340201b --- /dev/null +++ b/pica-etherpad-db/Dockerfile @@ -0,0 +1,3 @@ +FROM mysql:8 + +COPY config/limit_binary_log.cnf /etc/mysql/conf.d/limit_binary_log.cnf diff --git a/pica-etherpad-db/README.md b/pica-etherpad-db/README.md new file mode 100644 index 00000000..26924f23 --- /dev/null +++ b/pica-etherpad-db/README.md @@ -0,0 +1 @@ +This image limits the [mysql binary log](https://dev.mysql.com/doc/refman/8.0/en/binary-log.html) to 30 hours (=108000 seconds) via the [binlog_expire_logs_seconds](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_expire_logs_seconds) variable. diff --git a/pica-etherpad-db/clair-whitelist.yml b/pica-etherpad-db/clair-whitelist.yml new file mode 100644 index 00000000..a9d6ed5b --- /dev/null +++ b/pica-etherpad-db/clair-whitelist.yml @@ -0,0 +1 @@ +generalwhitelist: diff --git a/pica-etherpad-db/config/limit_binary_log.cnf b/pica-etherpad-db/config/limit_binary_log.cnf new file mode 100644 index 00000000..522abe93 --- /dev/null +++ b/pica-etherpad-db/config/limit_binary_log.cnf @@ -0,0 +1,2 @@ +[mysqld] +binlog_expire_logs_seconds = 108000 -- GitLab