Skip to content

Commit 64cb643

Browse files
committed
Update docs again 2! )
1 parent cf69fb7 commit 64cb643

1 file changed

Lines changed: 37 additions & 33 deletions

File tree

README.md

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,34 @@
44

55
2. Clone this repo;
66

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`
1435
1536
## Links:
1637
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
1940
2041
Access to admin side - `admin`:`admin`
2142
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`
4750
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

Comments
 (0)