Giter VIP home page Giter VIP logo

Comments (6)

sanaeefar-saeed avatar sanaeefar-saeed commented on June 8, 2024 3

Hi, as far as I investigated you get a 502 Bad Gateway until the phpfpm container logs the "fpm is ready to handle connections" which takes approximately 15 seconds on my mac.

You can see that with a dockergento docker-compose logs -f after starting the containers.
The 502s are apparently caused by an unavailable docker socket.

phpfpm_1 | [03-May-2019 10:23:57] NOTICE: ready to handle connections
nginx_1 | 2019/05/03 10:22:40 [notice] 1#1: using the "epoll" event method

it takes more than 1 min for me!

from magento2-dockergento.

danielozano avatar danielozano commented on June 8, 2024 1

Hi @erfanimani thanks for your help. I'm also experiencing that in some projects (it's more visible in large projects with a big ammount of code).

I don't have much information about that, but I think that containers in mac behave different than in linux because of the filesystem. Docker for mac can't use "native" filesystem and it needs some kind of virtualization, so probably docker for mac is making virtual mounts and copying files inside it (the reason of the bad performance).

I don't recomend you to mount pub, because the filesystem sync in docker for mac is really slow, you could use a volume and do a sync container -> host like we do with vendor (watch command).

Maybe you can do a deeper debug using the Console app for Mac.

I'm sorry for not being more helpful, if you need something please let us know!

from magento2-dockergento.

frighi-onestic avatar frighi-onestic commented on June 8, 2024 1

Hi, as far as I investigated you get a 502 Bad Gateway until the phpfpm container logs the "fpm is ready to handle connections" which takes approximately 15 seconds on my mac.

You can see that with a dockergento docker-compose logs -f after starting the containers.
The 502s are apparently caused by an unavailable docker socket.

from magento2-dockergento.

erfanimani avatar erfanimani commented on June 8, 2024 1

@powelles if it helps, I don't actually mount pub at all. I just run dockergento mirror-host /path/to/pub and leave it — there's no need for me to keep it in sync, but your use case may vary.

from magento2-dockergento.

erfanimani avatar erfanimani commented on June 8, 2024

from magento2-dockergento.

powelles avatar powelles commented on June 8, 2024

@danielozano How would one go about changing pub to be mounted the same way as vendor? I've got 88GB of images in my pup folder and it takes over an hour to spin up.

from magento2-dockergento.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.