-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script to start and stop local daml-on-sawtooth
1. Add bash script to ensure that daml-on-sawtooth starts cleanly. This is to avoid any stale keys stopping validator from starting. 2. Update README to reflect use of script. Signed-off-by: Paul Sitoh <[email protected]>
- Loading branch information
1 parent
4d6d661
commit 119166e
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
COMMAND=$1 | ||
|
||
function start(){ | ||
if [ -d ${PWD}/docker/keys ]; then | ||
rm -rf ${PWD}/docker/keys | ||
fi | ||
docker-compose -f ${PWD}/docker/compose/daml-local.yaml up | ||
} | ||
|
||
function stop(){ | ||
if [ -d ${PWD}/docker/keys ]; then | ||
rm -rf ${PWD}/docker/keys | ||
fi | ||
docker-compose -f ${PWD}/docker/compose/daml-local.yaml down | ||
} | ||
|
||
case "$COMMAND" in | ||
start) | ||
start | ||
;; | ||
stop) | ||
stop | ||
;; | ||
esac |