From c8ec29af7d886930023286cf19fd59941fcfa11c Mon Sep 17 00:00:00 2001 From: Thomas Kellermeier Date: Tue, 7 May 2019 21:18:39 +0200 Subject: [PATCH] Add a Windows Chapter to README - Add config to fix aio error according to https://github.com/farmOS/farmOS/issues/55#issuecomment-369279502 and https://github.com/docker/for-win/issues/1584#issuecomment-362165683 - Precent config to be "word-writable" according to: https://github.com/cytopia/devilbox/issues/212 --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c736c0f3..13c91b2d4 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,10 @@ Docker running Nginx, PHP-FPM, Composer, MySQL and PHPMyAdmin. When running, you can use docker commands for doing recurrent operations. +8. [Windows](#windows) + + Add some adjustments to make this setup work on Windows. + ___ ## Install prerequisites @@ -366,6 +370,25 @@ source .env && sudo docker exec -i $(sudo docker-compose ps -q mysqldb) mysql -u ___ +## Windows + +On Windows you might run into the following error at your mysql container: +```bash + InnoDB: Operating system error number 22 in a file operation +``` +A config file with the bugfix will be created and mounted into the mysql container: +```bash + mkdir data + mkdir data/conf + printf "[mysqld]\ninnodb_use_native_aio=0" > data/conf/local.cnf + chmod 0444 data/conf/local.cnf + printf '%12s- "./data/conf:/etc/mysql/conf.d"' >> docker-compose.yml +``` + +If your still in need Docker Toolbox with VitualBox, don't forget to establish port forwarding as described [here](https://www.jhipster.tech/tips/020_tip_using_docker_containers_as_localhost_on_mac_and_windows.html) + +___ + ## Help us -Any thought, feedback or (hopefully not!) \ No newline at end of file +Any thought, feedback or (hopefully not!)