Hello
I build a docker project - ruby on rails - and this app depends on mysql, redis , elasticsearch and kibana, I was able to run the whole package on my local machine and all seems good, however when I tried to run the same config on my teammate machine the ruby rails app was taking long time to execute the shell commands, like rake bower:install
also
when I connect to the app via shell command, and CLI command takes a lot of time I am talking about 15~25 minute like rails c and execute any rake command.
I can’t see any slow in opening the app on the browser, the app open smoothly and data connection between containers are good, I connected to mysql sh and it was smoothly interact with the container. but I can’t find reason for what happens with the ruby app.
mysql, redis, elasticsearch and the ruby rails app all use volumes.
check this gist for the docker-compose.yml I am using
Could you tell more about the two machines? Even without Docker there could be many things to slow processes down. Filesystem, disk types (SSD, HDD, etc…), network, cpu, memory, probably other softwares like antiviruses, firewalls. You need to compare those two machines and try to run as small part of the whole application as you can to see if anything else matters. Try on other machines to see which machine works differently If the working machine has more memory or cpu, try to limit it on the other. Try it in a virtual machine, if you can.
In case of Mac in which category this topic is, you can alos have two different virtualization types. One could have a Intel CPU, the other could have M1. So as I wrote, try to compare every parameter of those two machines and when you know the relevant difference, you can probably solve it.
When you think, you know the difference, try to reproduce that in an other environment, if you can’t, you need to continue the search
Interesting. Your teammate’s machine looks slightly better in every way. So is there any difference between the two Docker desktops? For example Desktop version, virtualization type (experimental feature, introduced in Big Sur) or file sharing (grpc or legacy). I don’t know when the grpc fuse was introduced.
yeh you will see every thing as programmer.
the second img was forces stoped after 15 min, just to compare with the first img which did not take 1 minute to finish .
we decided to run it on a third machine to see if we faced the same issue thanks for replying I really appreciate it.