File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 77# see https://stackoverflow.com/questions/63260073/starting-zero-alpha-and-ratel-in-a-single-command-e-g-in-macosx-and-other-envir
88# see https://discuss.dgraph.io/t/dgraph-start-script/9231
99
10- version=v20.07 .0
10+ version=v20.03 .0
1111# interative tty option for docker
1212it=" -it"
1313
@@ -62,12 +62,13 @@ error() {
6262# show usage
6363#
6464usage () {
65- echo " $0 [-b|--bash|-h|--help|-k|--kill|-p|--pull]"
65+ echo " $0 [-b|--bash|-c|--clean|- h|--help|-k|--kill|-p|--pull]"
6666 echo " "
6767 echo " -b | --bash: start a bash terminal shell within the currently running container"
6868 echo " -h | --help: show this usage"
6969 echo " -k | --kill: stop the docker image"
7070 echo " -p | --pull: pull the docker image"
71+ echo " -c | --clean: clean start with kill and purge of all data"
7172 exit 1
7273}
7374
181182 alpha) alpha;;
182183 ratel) ratel;;
183184 zero) zero;;
185+ -c|--clean)
186+ stopImage
187+ if [ -d ~ /dgraph ]
188+ then
189+ color_msg $blue " removing content from ~/dgraph"
190+ rm -rf ~ /dgraph/*
191+ fi
192+ # call me with no parameters to start terminals
193+ $me
194+ ;;
184195 -p|--pull) pullImage;;
185196 -b|--bash) bashInto;;
186197 -k|--kill) stopImage;;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def testConfRef(self):
2222 ''' test reading confRef data '''
2323 dgraph = Dgraph ()
2424 dgraph .drop_all ()
25- confRef = ConfRef (mode = 'json ' )
25+ confRef = ConfRef (mode = 'dgraph ' )
2626 confRef .em .removeCacheFile ()
2727 #EventManager.debug=True
2828 confRef .cacheEvents ()
You can’t perform that action at this time.
0 commit comments