lncm / noma

Noma - Bitcoin lightning node management CLI utility & Python API
https://lncm.io
Apache License 2.0
5 stars 2 forks source link

Hardcoded /var/lib/tor #49

Open AnotherDroog opened 5 years ago

AnotherDroog commented 5 years ago

Encountering this on Mac when /var/lib/tor is not created and shared.

ERROR: for neutrino_lnd_1  Cannot start service lnd: b'Mounts denied: \r\nThe path /var/lib/tor\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'

sudo mkdir /var/lib/tor and adding the dir to shares in Docker fixes it but is tedious for users

nolim1t commented 5 years ago

The docker image doesnt require this mount. Only for a specific compose file which is not in this repo

AnotherDroog commented 5 years ago

Ok, thanks!

Can you move the issue to Noma?

nolim1t commented 5 years ago

Moved to NOMA

nolim1t commented 5 years ago

the Mac Tor directory is /usr/local/var/lib/tor, so perhaps a detect for the OS or directory before startup and a quick sed script to rewrite the tor pathname in the compose file might work

nolim1t commented 5 years ago

Although there is some other issues on Macs where we should probably not use docker because Mac support for docker uses a linux VM so there is issues with the container communicating with the tor host.

AnotherDroog commented 5 years ago

I'm thinking vagrant is a solid choice for Mac development. We can do setup of virtualbox VM's as well as docker orchestration with it, i.e. setting up docker to be ready for our compose files.

Instead of messing with the tor path, can't we put it in a container instead?

nolim1t commented 5 years ago

if you can get tor as a container then why not.

Building it isn't the easiest, let alone getting it a multiplatform binary

AnotherDroog commented 5 years ago

I‘m going to focus on containerizing Noma first since that brings the greatest benefit to reducing deployment time