Skip to content

Commit

Permalink
Enhancements (#21)
Browse files Browse the repository at this point in the history
* scratch ~/.nigiri when running script install

* fix compose files and add esplora containers

* refactor
* use docker lib to check containers
* collapse commands in order to have just start and stop
* move from command to flag for version

* update README

* fix docker checks
  • Loading branch information
altafan authored and tiero committed May 2, 2019
1 parent 21f1ac3 commit 58887d3
Show file tree
Hide file tree
Showing 12 changed files with 400 additions and 262 deletions.
95 changes: 95 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 9 additions & 12 deletions README.md
Expand Up @@ -30,17 +30,19 @@ Enter project directory and install dependencies:
nigiri $ bash scripts/install
```

This will create `~/.nigiri` copying there the `cli/resources/` directory.

Build binary (Mac version):
```
nigiri $ bash scripts/build darwin amd64
```

At the moment bitcoind, liquidd and electrs are started on *regtest* network.

Create nigiri environment:
Start nigiri:

```bash
nigiri/build $ nigiri-linux-amd64 create
nigiri/build $ nigiri-linux-amd64 start
```

Nigiri uses the default directory `~/.nigiri` to store the configuration file and docker stuff.
Expand All @@ -55,19 +57,13 @@ The environment will start with 3 containers for `regtest` bitcoin network that
Use the `--liquid` flag to let you do experiments with the Liquid sidechain. A liquid daemon and a block explorer
are also started when passing this flag.

Start/Stop nigiri:

```bash
nigiri/build $ nigiri-linux-amd64 start|stop
```

Stop and delete nigiri environment:
Stop nigiri:

```bash
nigiri/build $ nigiri-linux-amd64 delete
nigiri/build $ nigiri-linux-amd64 stop
```

This command stops and deletes any active contained and deletes the configuration file and all the Docker-generated files and directories.
Use the `--delete` flag to not just stop Docker containers but also to remove them and delete the config file and any new data written in volumes.

## Nutrition Facts

Expand All @@ -83,4 +79,5 @@ If you really do love Sathoshi's favourite dish like us at Vulpem Ventures, chec
- [x] electrum server
- [x] bitcoin daemon
- [x] liquid daemon
- [x] faucet
- [x] block explorer UI
- [] regtest faucet
92 changes: 0 additions & 92 deletions cli/cmd/create.go

This file was deleted.

90 changes: 0 additions & 90 deletions cli/cmd/delete.go

This file was deleted.

0 comments on commit 58887d3

Please sign in to comment.