mirror of
https://github.com/aljazceru/nigiri.git
synced 2025-12-17 06:14:19 +01:00
fix: use new tapd image (#181)
This commit is contained in:
@@ -74,7 +74,7 @@ $ nigiri start
|
||||
```
|
||||
- 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.
|
||||
|
||||
- Use the `--ln` flag to start a Core Lightning node, a LND node and a Taro daemon.
|
||||
- Use the `--ln` flag to start a Core Lightning node, a LND node and a Tap daemon.
|
||||
|
||||
### Stop nigiri
|
||||
|
||||
@@ -171,8 +171,8 @@ el1qqwwx9gyrcrjrhgnrnjq9dq9t4hykmr6ela46ej63dnkdkcg8veadrvg5p0xg0zd6j3aug74cv9m4
|
||||
$ nigiri cln listpeers
|
||||
# LND
|
||||
$ nigiri lnd listpeers
|
||||
# Taro
|
||||
$ nigiri taro assets list
|
||||
# Tap (Taro)
|
||||
$ nigiri tap assets list
|
||||
```
|
||||
|
||||
### Connect Core Lightning to LND
|
||||
|
||||
@@ -64,7 +64,7 @@ func main() {
|
||||
&logs,
|
||||
&mint,
|
||||
&push,
|
||||
&taro,
|
||||
&tap,
|
||||
&start,
|
||||
&update,
|
||||
&faucet,
|
||||
@@ -123,7 +123,7 @@ func provisionResourcesToDatadir(datadir string) error {
|
||||
if err := makeDirectoryIfNotExists(filepath.Join(datadir, "volumes", "lightningd")); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := makeDirectoryIfNotExists(filepath.Join(datadir, "volumes", "taro")); err != nil {
|
||||
if err := makeDirectoryIfNotExists(filepath.Join(datadir, "volumes", "tapd")); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ services:
|
||||
|
||||
lnd:
|
||||
container_name: lnd
|
||||
image: ghcr.io/vulpemventures/lnd
|
||||
image: ghcr.io/vulpemventures/lnd:v0.16.2-beta
|
||||
user: 1000:1000
|
||||
depends_on:
|
||||
- bitcoin
|
||||
@@ -182,15 +182,15 @@ services:
|
||||
- "10009:10009" # grpc"
|
||||
- "18080:18080" # rest"
|
||||
|
||||
taro:
|
||||
container_name: taro
|
||||
image: ghcr.io/vulpemventures/taro
|
||||
tap:
|
||||
container_name: tap
|
||||
image: ghcr.io/vulpemventures/tapd:v0.2.0
|
||||
user: 1000:1000
|
||||
depends_on:
|
||||
- bitcoin
|
||||
- lnd
|
||||
volumes:
|
||||
- ./volumes/taro:/data/.taro
|
||||
- ./volumes/tapd:/data/.tapd
|
||||
- ./volumes/lnd:/data/.lnd
|
||||
environment:
|
||||
HOME: /data
|
||||
|
||||
@@ -49,7 +49,7 @@ func startAction(ctx *cli.Context) error {
|
||||
|
||||
if isLN {
|
||||
// LND
|
||||
servicesToRun = append(servicesToRun, "taro")
|
||||
servicesToRun = append(servicesToRun, "tap")
|
||||
// Core Lightning Network
|
||||
servicesToRun = append(servicesToRun, "cln")
|
||||
}
|
||||
@@ -64,7 +64,7 @@ func startAction(ctx *cli.Context) error {
|
||||
// add also LN services if needed
|
||||
if isLN {
|
||||
// LND
|
||||
servicesToRun = append(servicesToRun, "taro")
|
||||
servicesToRun = append(servicesToRun, "tap")
|
||||
// Core Lightning Network
|
||||
servicesToRun = append(servicesToRun, "cln")
|
||||
}
|
||||
|
||||
@@ -8,13 +8,13 @@ import (
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
var taro = cli.Command{
|
||||
Name: "taro",
|
||||
Usage: "invoke taro command line interface",
|
||||
Action: taroAction,
|
||||
var tap = cli.Command{
|
||||
Name: "tap",
|
||||
Usage: "invoke tap command line interface",
|
||||
Action: tapAction,
|
||||
}
|
||||
|
||||
func taroAction(ctx *cli.Context) error {
|
||||
func tapAction(ctx *cli.Context) error {
|
||||
|
||||
if isRunning, _ := nigiriState.GetBool("running"); !isRunning {
|
||||
return errors.New("nigiri is not running")
|
||||
@@ -34,7 +34,7 @@ func taroAction(ctx *cli.Context) error {
|
||||
if isCi {
|
||||
ttyOption = "-i"
|
||||
}
|
||||
rpcArgs := []string{"exec", ttyOption, "taro", "tarocli", "--network=" + network}
|
||||
rpcArgs := []string{"exec", ttyOption, "tap", "tapcli", "--network=" + network, "--tapddir=/data/.tapd"}
|
||||
cmdArgs := append(rpcArgs, ctx.Args().Slice()...)
|
||||
bashCmd := exec.Command("docker", cmdArgs...)
|
||||
bashCmd.Stdin = os.Stdin
|
||||
Reference in New Issue
Block a user