From d1d72e7b9fb1146abc6e432f40f21b43f7149071 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 26 Sep 2018 16:23:06 +0200 Subject: [PATCH] add .gitignore to ignore /var/logs and /var/lib/mysql --- .gitignore | 1 + README.md | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..33c02ef --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/virtual/var diff --git a/README.md b/README.md index f14e9c0..c41f34a 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,14 @@ MariaDB will have its whole data folder (_i.e. `/var/lib/mysql`_) on the host in > In a real-world environment, we would not store the whole data folder (in fact it would be in the _.gitignore_), but we would add a script to dump a SQL file into the database when using the environment for the first time : > > ```bash -> cat backup.sql | docker exec -i mariadb mysql -uroot -p -> ``` -> +cat backup.sql | docker exec -i mariadb mysql -uroot -p +``` > Then, the volumes would be shared and persistent on the host. + + ###### c) Log files Also logs will be mounted the same way in order for developers to easily check these out when needed (_e.g. `virtual/var/log/apache2/access.log`_). Also, note that even if the container is removed, the logs will remain.