Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Be nice and clean up docker after run run --rm.
Browse files Browse the repository at this point in the history
  • Loading branch information
libby committed Apr 7, 2020
1 parent 1fd4760 commit 8d3dd82
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ The `qubernetes.yaml` file and the desired `out` directory will need to be mount
```bash
$> git clone https://github.com/jpmorganchase/qubernetes.git
$> cd qubernetes
qubernetes $> docker run -v $(pwd)/qubernetes.yaml:/qubernetes/qubernetes.yaml -v $(pwd)/out:/qubernetes/out -it quorumengineering/qubernetes ./quorum-init qubernetes.yaml
qubernetes $> docker run --rm -it -v $(pwd)/qubernetes.yaml:/qubernetes/qubernetes.yaml -v $(pwd)/out:/qubernetes/out quorumengineering/qubernetes ./quorum-init qubernetes.yaml
qubernetes $> ls out
```
[![docker-quberentes-boot-1](docs/resources/docker-quberentes-boot-1-play.png)](http://blog.libbykent.com/action-time/docker-quberentes-boot-1.webm)
Expand All @@ -172,7 +172,7 @@ cool-qubernetes.yaml
# run docker and mount cool-qubernetes.yaml and the out directory
# a prompt will appear enter 1 to Delete the 'out' directory and generate new resources.
myDir$> docker run -v $(pwd)/cool-qubernetes.yaml:/qubernetes/cool-qubernetes.yaml -v $(pwd)/out:/qubernetes/out -it quorumengineering/qubernetes ./quorum-init cool-qubernetes.yaml
myDir$> docker run --rm -it -v $(pwd)/cool-qubernetes.yaml:/qubernetes/cool-qubernetes.yaml -v $(pwd)/out:/qubernetes/out quorumengineering/qubernetes ./quorum-init cool-qubernetes.yaml
using config file: cool-qubernetes.yaml
The 'out' directory already exist.
Expand All @@ -199,7 +199,7 @@ so it is as if we were running on our local host: the files from the host will b
```
$> git clone https://github.com/jpmorganchase/qubernetes.git
$> cd qubernetes
qubernetes $> docker run -v $(pwd):/qubernetes -ti quorumengineering/qubernetes
qubernetes $> docker run --rm -it -v $(pwd):/qubernetes -ti quorumengineering/qubernetes
root@4eb772b14086:/qubernetes# ./quorum-init
root@4eb772b14086:/qubernetes# ls out/
Expand Down
4 changes: 2 additions & 2 deletions quickest-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ echo "kind cluster created"
if [[ $NUM_NODES -gt 0 ]];
then
cat qubernetes.yaml | sed "s/number:.*/number: $NUM_NODES/g" > quickest-start.yaml
echo docker run -v $(pwd):/qubernetes -ti quorumengineering/qubernetes ./quorum-init quickest-start.yaml
docker run -v $(pwd):/qubernetes -ti quorumengineering/qubernetes ./quorum-init quickest-start.yaml
echo docker run --rm -it -v $(pwd):/qubernetes quorumengineering/qubernetes ./quorum-init quickest-start.yaml
docker run --rm -it -v $(pwd):/qubernetes quorumengineering/qubernetes ./quorum-init quickest-start.yaml
kubectl apply -f out -f out/deployments > /dev/null
else
echo "Deploying 7nodes with Privacy manager tessera and consensus IBFT"
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ else
exit 1
fi

docker run -v $(pwd):/qubernetes -ti quorumengineering/qubernetes testing/gen-configs.sh ${CONFIG_PREFIX}
docker run --rm -it -v $(pwd):/qubernetes quorumengineering/qubernetes testing/gen-configs.sh ${CONFIG_PREFIX}
testing/test-k8s-resources.sh ${CONFIG_PREFIX}

0 comments on commit 8d3dd82

Please sign in to comment.