-
Notifications
You must be signed in to change notification settings - Fork 25
/
fabfile.py
26 lines (23 loc) · 901 Bytes
/
fabfile.py
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
"""
https://github.com/renskiy/fabricio/blob/master/examples/hello_world
"""
from fabricio import tasks, docker
from fabricio.misc import AvailableVagrantHosts
app = tasks.DockerTasks(
service=docker.Container(
name='app',
image='nginx:stable-alpine',
options={
# `docker run` options
'env': 'FOO=42',
},
),
hosts=AvailableVagrantHosts(),
# rollback_command=True, # show `rollback` command in the list
# migrate_commands=True, # show `migrate` and `migrate-back` commands in the list
# backup_commands=True, # show `backup` and `restore` commands in the list
# pull_command=True, # show `pull` command in the list
# update_command=True, # show `update` command in the list
# revert_command=True, # show `revert` command in the list
# destroy_command=True, # show `destroy` command in the list
)