-
Notifications
You must be signed in to change notification settings - Fork 2
/
mutagen.yml
40 lines (35 loc) · 1.07 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
# Set up the Mutagen service and code volume before creating sessions.
beforeCreate:
- 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 up --detach web
# Stop service to prevent from 'tmp/pids/server.pid' remaining before terminating sessions.
beforeTerminate:
- docker-compose stop web
# Tear down all services after terminating sessions.
afterTerminate:
- docker-compose down --volumes
# Define common utility commands.
commands:
logs: docker-compose logs --follow
bundle: docker-compose run --rm web bundle install
# Synchronize code to the shared Docker volume via the Mutagen service.
sync:
defaults:
flushOnCreate: true
ignore:
vcs: true
code:
alpha: "."
beta: "docker://rubicure-graphql-mutagen/code"
mode: "two-way-resolved"
ignore:
paths:
- "ci/"
- "log/"
- "storage/"
- "tmp/"
- "vendor/"
- "mutagen.yml.lock"