forked from duhon/magento-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mutagen.yml
57 lines (51 loc) · 1.83 KB
/
mutagen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Set up the Mutagen service and code volume before creating sessions.
beforeCreate:
- cp bundles/storefront.yml docker-compose.yml
- bash init_project
- docker-compose up --build --detach mutagen
# Set up the main services after creating sessions. At this point, sessions will
# have been established and code pushed to the shared volume.
afterCreate:
- docker-compose pull
- docker-compose up --build --detach
- bash reinstall
# Pause services after pausing sessions.
afterPause:
- docker-compose stop
# Resume services before resume sessions.
beforeResume:
- docker-compose start
# Tear down all services and remove the code volume after terminating sessions.
afterTerminate:
- docker-compose down --volumes
- echo y | docker-compose rm -s
# Define common utility commands.
commands:
logs: docker-compose logs --follow
reindex: docker-compose exec app magento reindex
reinstall: bash reinstall
xdebug-enable: sed -ie "s|#zend_extension=xdebug.so|zend_extension=xdebug.so|" ./etc/php/xdebug.ini && docker-compose restart app app-message-broker
xdebug-disable: sed -ie "s|zend_extension=xdebug.so|#zend_extension=xdebug.so|" ./etc/php/xdebug.ini && docker-compose restart app app-message-broker
grpc-server-start: docker-compose exec app magento grpc
grpc-run-bench: docker-compose -f bundles/grpc-testing.yml up
# Synchronize code to the shared Docker volume via the Mutagen service.
sync:
defaults:
flushOnCreate: true
ignore:
vcs: true
symlink:
mode: ignore
permissions:
defaultFileMode: 0666
defaultDirectoryMode: 0777
code:
alpha: "/Users/ruslankostiv/projects/storefront/repos"
beta: "docker://web-mutagen/var/www"
mode: "two-way-resolved"
ignore:
paths:
- ".idea"
- ".git"
# - "/magento2ce/vendor"
# - "/magento2ce/generated"