devilbox icon indicating copy to clipboard operation
devilbox copied to clipboard

WIP: Feature: docker-sync

Open cytopia opened this issue 5 years ago • 4 comments

docker-sync

GOAL

Run the Devilbox at acceptable performance on MacOS and Windows. (Ignore this PR for Linux)

DESCRIPTION

This PR adds docker-sync support to the Devilbox.

  • Refs: #105
  • Refs: https://github.com/EugenMayer/docker-sync/issues/649

How to use it:

  • Docker sync docs: https://docker-sync.readthedocs.io/en/latest/index.html#

1. Requirements

1.1 MacOS

# Install docker-sync
sudo gem install docker-sync

# Install additional requirements
brew install unison
brew install eugenmayer/dockersync/unox

1.2 Windows

https://docker-sync.readthedocs.io/en/latest/getting-started/installation.html

2. Start

Stop and clean your stack first

# Clean
docker-compose stop
docker-compose rm

Start docker-sync (and wait until it finishes successfully):

docker-sync start

Start the Devilbox as usual

docker-compose up php httpd bind

3. Stop

  1. Ctrl+c to stop the Devilbox or docker-compose stop
  2. Clean state: docker-compose rm
  3. Stop docker-sync: docker-sync stop

cytopia avatar Mar 10 '19 13:03 cytopia

Running brew install eugenmayer/dockersync/unox results in

ImportError: No module named setuptools

I tried installing python 3, using python --version says Python 3.7.4 but it's still not working. If this isn't your business, ignore that.

Your changes on the pull request are working, but I'm not experiencing any increased loading speeds with a TYPO3/database site hosted in devilbox. TTFB is pending between 16 seconds and 1 minute. I guess the bottleneck is here the MySQL server/client.

JLNNN avatar Aug 16 '19 08:08 JLNNN

Hi guys, any ETA for this PR to be merged into master or should we just use the commit ymls to experiment?

nicolabeghin avatar Sep 29 '19 14:09 nicolabeghin

any news on this PR? gonna try with last version of devilbox.

CarlosRGL avatar Aug 14 '20 09:08 CarlosRGL

Hi Every one, I'm using devilbox on ubuntu 20 for Magento 2. The problem is that the machine is very slow especially when we generated static file in Magento 2. below an example of executing from the system ubuntu Vs executing from devilbox

  • Ubuntu it took: 10 s
  • Devilbox: 6 minutes image image

When I googled on some machine that are fast, I get this one: https://github.com/ModestCoders/magento2-dockergento they explain why here machine is very fast in this link: https://github.com/ModestCoders/magento2-dockergento/blob/master/docs/overcome_performance_issues.md

I realy like to work with devilbox so my need is to synchronize juste some folder as they descirbe on the link above. synchronize all git files but ignore vendor folder in Magento

Someone workt on Magento before in devil box ?

hielh avatar Nov 13 '20 22:11 hielh