-
Notifications
You must be signed in to change notification settings - Fork 16
/
.aliases
37 lines (28 loc) · 1.38 KB
/
.aliases
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
# This file is autogenerated by the aliases tool.
# For more info about aliases type `aliases --help`
# or visit https://github.com/sebglazebrook/aliases
#alias_name:
# command: ./super_command.sh # required
# confirm: true # optional
# confirmation_message: Are you sure you are sure?? # optional
# conditional: /bin/true # optional
# backout_seconds: 3 # optional
# unit_test: '[ true = true ]' # optional
# quiet: false # optional
tsu:
command: "docker network create -d overlay --attachable dbs &&
docker stack deploy -c docker-stack.test.yml test_pg_cluster"
tsd:
command: docker stack rm test_pg_cluster && docker network rm dbs
pcli:
command: docker ps --filter name=dbnode1 -q | xargs -o -I % docker exec -ti % patronictl
bkt:
command: docker run -t -v ${PWD}/wal-e:/etc/wal-e -i seocahill/pg-restore-test:latest
cvms:
command: "for vm in db-1 db-2 db-3; do docker-machine create --driver virtualbox $vm;done"
prms:
command: 'for vm in $@; do docker-machine ssh $vm "docker system prune --volumes";done'
clbs:
command: "for i in 1 2 3; do docker node update --label-add name=db-$i --label-add type=db db-$i;done"
dkx:
command: docker exec -ti $(docker ps -f name=$0 -q) $1