brikis98 / docker-osx-dev

A productive development environment with Docker on OS X
http://www.ybrikman.com/writing/2015/05/19/docker-osx-dev/
MIT License
1.43k stars 106 forks source link

Drupal 7 performance boost not improving #204

Open leolandotan opened 6 years ago

leolandotan commented 6 years ago

Good day, I have setup this solution on my Mac 10.12.6 + Docker 17.12.0-ce-mac47. My docker-compose.yml file looks like:

version: '3'
services:
  web:
    build: docker/php
    volumes:
      - ./docroot:/var/www/html/www
    ports:
      - 80:80
  db:
    build: docker/mysql
    volumes:
      - ./db_data:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: default
      MYSQL_USER: default
      MYSQL_PASSWORD: default

Using the Devel module, I got an output of: d7-exec-time

I have run docker-osx-dev inside my project root where it looks like:

total 8
drwxrwxrwx@  9 leotan  staff   306B Jan 13 18:35 db_data
drwxr-xr-x   4 leotan  staff   136B Jan 13 18:33 docker
-rw-r--r--   1 leotan  staff   359B Jan 13 18:35 docker-compose.yml
drwxr-xr-x  30 leotan  staff   1.0K Jun 22  2017 docroot

then did a normal docker-compose up -d.

With docker-osx-dev running with no errors, when I have some changes it outputs something like:

2018-01-13 18:23:17 [INFO] Syncing db_data/ibdata1: <f..t....
2018-01-13 18:23:19 [INFO] Syncing db_data/ib_logfile0: <f..t....
2018-01-13 18:23:19 [INFO] Syncing db_data/ibdata1: <f..t....
2018-01-13 18:23:20 [INFO] Syncing db_data/ib_logfile1: <f..t....
2018-01-13 18:35:50 [INFO] Syncing db_data/ea0dd55c417a.pid: *deleting
2018-01-13 18:35:50 [INFO] Syncing db_data/ib_logfile0: <f..t....
2018-01-13 18:35:50 [INFO] Syncing db_data/ib_logfile1: <f..t....
2018-01-13 18:35:50 [INFO] Syncing db_data/ibdata1: <f..t....
2018-01-13 18:35:53 [INFO] Syncing db_data/ib_logfile0: <f..t....
2018-01-13 18:35:53 [INFO] Syncing db_data/ib_logfile1: <f..t....
2018-01-13 18:35:54 [INFO] Syncing db_data/dab9b0d8fd3d.pid: <f+++++++
2018-01-13 18:36:06 [INFO] Syncing db_data/ib_logfile1: <f..t....
2018-01-13 18:36:07 [INFO] Syncing db_data/ib_logfile1: <f..t....
2018-01-13 18:36:15 [INFO] Syncing db_data/ib_logfile0: <f..t....
2018-01-13 18:36:15 [INFO] Syncing db_data/ib_logfile1: <f..t....
2018-01-13 18:36:15 [INFO] Syncing db_data/ibdata1: <f..t....

Whether docker-osx-dev is on or not, I still get the same Page Execution Time. Should that be lower when docker-osx-dev is running and higher if I'm running docker-compose.yml without docker-osx-dev?

Update

I tried the method of testing from https://github.com/brikis98/docker-osx-dev/issues/161#issuecomment-168523774 but when docker-osx-dev is not running and I do a touch testfile, it gets created in the container. I accessed the container also using docker-compose exec web /bin/bash. What am I doing wrong?