Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use normal user to run bitcoin and cln #191

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

andrei-21
Copy link
Contributor

It solves the problem that files created in volumes have root user and make it hard to remove on Linux machines.

It solves the problem that files created in volumes have root user and
make it hard to remove on Linux machines.
@tiero
Copy link
Member

tiero commented Oct 2, 2024

Thank you for opening this. Using these changes do you tested with nigiri start --ln and nigiri stop --delete

@andrei-21
Copy link
Contributor Author

Of course:

$ nigiri start --ln
Creating network "nigiri" with the default driver
Creating bitcoin ... done
Creating lnd        ... done
Creating electrs ... done
Creating cln        ... done
Creating chopsticks ... done
Creating esplora    ... done

ENDPOINTS
esplora localhost:5000
lnd localhost:9735
lnd localhost:10009
lnd localhost:18080
cln localhost:9935
cln localhost:9835
bitcoin localhost:18443
bitcoin localhost:18444
bitcoin localhost:28332
bitcoin localhost:28333
chopsticks localhost:3000
tap localhost:10029
tap localhost:8089
electrs localhost:50000
electrs localhost:30000
$ nigiri cln getinfo
{
   "id": "025391c32b6f818118e056394b9132c527f3f0a05f05b931ba6b6b7c990a76a6bf",
   "alias": "nigiri",
   "color": "025391",
   "num_peers": 0,
   "num_pending_channels": 0,
   "num_active_channels": 0,
   "num_inactive_channels": 0,
   "address": [],
   "binding": [
      {
         "type": "ipv4",
         "address": "0.0.0.0",
         "port": 9935
      }
   ],
   "version": "v24.08",
   "blockheight": 101,
   "network": "regtest",
   "fees_collected_msat": 0,
   "lightning-dir": "/.lightning/regtest",
   "our_features": {
      "init": "08a0800a8a59a1",
      "node": "88a0800a8a59a1",
      "channel": "",
      "invoice": "02000002024100"
   }
}
$ nigiri stop --delete
Stopping esplora    ... done
Stopping chopsticks ... done
Stopping electrs    ... done
Stopping cln        ... done
Stopping lnd        ... done
Stopping bitcoin    ... done
Removing esplora    ... done
Removing chopsticks ... done
Removing electrs    ... done
Removing cln        ... done
Removing lnd        ... done
Removing bitcoin    ... done
Removing network nigiri
Removing data from volumes...
Nigiri has been cleaned up successfully.

@tiero tiero merged commit 86490fd into vulpemventures:master Oct 18, 2024
3 checks passed
@andrei-21 andrei-21 deleted the feature/use-normal-user branch October 18, 2024 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants