-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli
More file actions
executable file
·38 lines (32 loc) · 710 Bytes
/
cli
File metadata and controls
executable file
·38 lines (32 loc) · 710 Bytes
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
# mysql client
.mysql(){
docker exec -it mysql mysql -h mysql -u root
}
# postgres client
.psql(){
docker exec -it -e PGPASSWORD=postgres postgres psql -h postgres -U postgres
}
# cassandra client
.cqlsh(){
docker exec -it cassandra cqlsh cassandra
}
# kafka sql client
.ksql(){
docker run -it --link ksql-server --net bootstrap_default --rm confluentinc/cp-ksql-cli:5.0.1 http://ksql-server:8088
}
# redis client
.redis-cli(){
docker exec -it redis redis-cli -h redis
}
.purge_data(){
cur_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $cur_dir
rm -rf data
cd -
}
.bootstrap(){
cur_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $cur_dir
./bootstrap "$@"
cd -
}