Skip to content

Add a chapter to README for making it work on Windows #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
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!)