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
NOTE: You do not need to have `Composer` installed. You only need to create a `.composer` folder in your computer, so it can be used by containers to cache composer dependecies instead of downloading them everytime.
53
85
54
-
2. Optionally apply these performance tweaks
86
+
2. Optionally you can also apply these performance tweaks
It is recommended to use this bash script tool for easier development workflow. See [dockergento workflow](#workflow)
67
180
68
181
## Usage
69
182
@@ -82,63 +195,35 @@ sudo vim /etc/hosts
82
195
// Add -> 127.0.0.1 <your-domain>
83
196
```
84
197
85
-
### Execute Magento commands
86
-
87
-
Magento commands must be executed inside the `php` container
88
-
89
-
```
90
-
docker-compose exec phpfpm bash
91
-
```
92
-
93
-
### <aname="sync"></a> Sync vendor and generated
94
-
95
-
There are 2 options to sync the volumes `vendor` and `generated`
198
+
### <aname="workflow"></a> Workflow
96
199
97
-
#### Option 1: One time sync
98
-
99
-
This option must be used most of the times. You should only need to sync `vendor` and `generated` from time to time for debugging purposes
100
-
101
-
```
102
-
docker-compose run --rm unison sync -path <path_to_sync>
103
-
```
200
+
See detailed documentation about development workflow with dockergento
104
201
105
-
**NOTE:**`<path_to_sync>` should be `vendor` or `generated`. For faster and more specific syncs, you can include the subfolder path inside `vendor` like `sync -path vendor/<company_name>`.
docker-compose run --rm unison watch -path <path_to_sync>
113
-
```
208
+
## Grumphp
114
209
115
-
Example: `docker-compose run --rm unison watch -path vendor/<company_name>/<module_name>`
210
+
*[Grumphp Setup](docs/grumphp_setup.md)
116
211
117
-
### Frontend
212
+
##Docker Images
118
213
119
-
1. NPM config setup (Only first time)
214
+
*[Docker Images List](docs/docker_images.md)
120
215
121
-
```
122
-
docker-compose run --rm node sh -c "cp -n package.json.sample package.json \
123
-
&& cp -n Gruntfile.js.sample Gruntfile.js \
124
-
&& npm install"
125
-
```
216
+
## Troubleshooting
126
217
127
-
2. Grunt watch
218
+
### Named volumes suddenly binded to host
128
219
129
-
```
130
-
docker-compose run --rm node sh -c "grunt exec:<theme>"
131
-
docker-compose run --rm node sh -c "grunt watch"
132
-
```
220
+
There is bug in docker that causes volumes to stop working and start behabing like a binded mount. If you notice a performance decrease, try the following:
0 commit comments