You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-33Lines changed: 37 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,34 @@
4
4
5
5
2. Clone this repo;
6
6
7
-
From the repo root run in console
8
-
9
-
3.`$ chmod +x run.sh`;
10
-
11
-
4.`$ ./run.sh`;
12
-
13
-
5.`$ docker-compose up -d` (if you mac user see "Mac Users" sections).
7
+
3. From the repo root run in console:
8
+
`$ chmod +x run.sh`;
9
+
10
+
4. Download Drupal:
11
+
`$ ./run.sh`;
12
+
13
+
5. Build/Run the containers:
14
+
**For non Mac users (lucky users):**
15
+
`$ docker-compose up -d`;
16
+
**For Mac users:**
17
+
Since there are know performance issue with docker shared file system on mac, we suld do some workaround:
18
+
1. Install the tool
19
+
`$ gem install docker-sync`
20
+
21
+
2. Start sync container (may take up to 10 mins for the first run):
22
+
`$ docker-sync start`.
23
+
Following lines indicates that container is started:
24
+
25
+
```
26
+
ok Starting native_osx for sync codebase
27
+
success Sync container started
28
+
success Starting Docker-Sync in the background
29
+
```
30
+
Other commands:
31
+
`docker-sync stop` to stop sync container, `$ docker-sync clean` cleanup before next run.
32
+
33
+
Then do a composer start with specific compose file:
34
+
`$ docker-compose -f docker-compose-mac.yml up -d`
14
35
15
36
## Links:
16
37
Site will available on host: http://panels_d8.docker.localhost:8877 or http://localhost:2877
@@ -19,30 +40,13 @@ Phpmyadmin available on host: http://pma.panels_d8.docker.localhost:8877 or htt
19
40
20
41
Access to admin side - `admin`:`admin`
21
42
22
-
## Container access examples:
23
-
* Clear site cache: `$ docker-compose exec php drush cr`
24
-
* Enter the command line: `$ docker-compose exec php bash`
25
-
* Download and enable module ctools: `$ docker-compose exec php drush en ctools -y`
26
-
27
-
## Mac Users
28
-
To fix Docker poor performance on macOS use the following workaround based on docker-sync project. The core idea is to replace a standard slow volume with a file synchronizer tool.
29
-
30
-
1. Install the tool
31
-
`$ gem install docker-sync`
32
-
33
-
2. Start sync container (may take up to ):
34
-
`$ docker-sync start`. Use `docker-sync stop` to stop sync.
35
-
`$ docker-sync clean` cleanup before next run.
36
-
37
-
Following lines indicates the container is started:
38
-
39
-
```
40
-
ok Starting native_osx for sync codebase
41
-
success Sync container started
42
-
success Starting Docker-Sync in the background
43
-
```
44
-
45
-
## Then do a composer start with specific compose file
46
-
`$ docker-compose -f docker-compose-mac.yml up -d`
43
+
## Container commands examples:
44
+
* Clear site cache:
45
+
`$ docker-compose exec php drush cr`
46
+
* Enter the command line:
47
+
`$ docker-compose exec php bash`
48
+
* Download and enable module ctools:
49
+
`$ docker-compose exec php drush en ctools -y`
47
50
48
-
More info about docker-compose environment images - https://github.com/wodby/docker4drupal
51
+
Full documantation about docker4drupal - http://docs.docker4drupal.org/en/latest/.
52
+
More info about docker-sync project - https://github.com/EugenMayer/docker-sync/.
0 commit comments