Skip to content
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

Some tips for Windows users #77

Open
EdvardasP opened this issue Dec 12, 2019 · 0 comments
Open

Some tips for Windows users #77

EdvardasP opened this issue Dec 12, 2019 · 0 comments

Comments

@EdvardasP
Copy link

Hello students,

I was one of the students at the NFQ academy. I developed on Windows and met problems launching the project. I will share my experience to save your time. Here are my tips.

  1. I suggest using Vagrant instead of Docker Toolbox (it is for older Windows versions).
  2. Who has experience with Laravel Homestead, you can use it. It works fine as well.
    Here is a great tutorial, how to install Homestead on Windows.
    Why Homestead? You can set up a local domain address, something like - nfq.test. Probably you can do that and without Homestead, I did not try.
  3. Once Vagrant setup and running, enter Vagrant vagrant ssh. Go to the project folder, for example, cd code/project and clone your project, which will be based on kickstart.
  4. Then follow up instructions from kickstart.
  5. Maybe it was only for me, but I had numerous problems launching the project, mostly with MySQL container.
  • First of all, before launching Docker (scripts/start.sh) go to scripts/docker-compose.yml and edit ports of nginx.symfony container:
    from - 127.0.0.1:8000:80
    to - 8000:80
    127.0.0.1 is the localhost, but we are using Vagrant, so we need to use Vagrant local IP or leave empty.
    Homestead users will reach the project by entering their setup local address (for example nfq.test:8000).

  • One of the problem was related to permissions. I fixed it by adding :rw in file scripts/docker-compose.yml:
    - ../.docker/mysql-data/:/var/lib/mysql:rw. Solution.

  • It could be that :rw do not help. Then try to rename volume address:
    from - ../.docker/mysql-data/:/var/lib/mysql
    to - ../.docker/mysql-data/:/var/lib/mysql1

  • Forgot to mention, that the SSH client (for example Putty or Git Bash) must be started with option Run as administrator, otherwise, you will have many problems inside Vagrant.

NOTE. Do not forget to revert all changes to the original in file docker-compose.yml before pushing to your repository.

It is just my advises, hopefully, it will help somebody. Choose what works best for you.

Good luck and have fun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant