Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a Windows Chapter to README
- Add config to fix aio error according to farmOS/farmOS#55 (comment) and docker/for-win#1584 (comment)
- Precent config to be "word-writable" according to: cytopia/devilbox#212
  • Loading branch information
Chaoste committed May 7, 2019
1 parent d336d9d commit c8ec29a
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion README.md
Expand Up @@ -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
Expand Down Expand Up @@ -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!)
Any thought, feedback or (hopefully not!)

0 comments on commit c8ec29a

Please sign in to comment.