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

docker setup-volume script flexibilty #136

Open
pinheadmz opened this issue Oct 10, 2023 · 1 comment
Open

docker setup-volume script flexibilty #136

pinheadmz opened this issue Oct 10, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed High Priority
Milestone

Comments

@pinheadmz
Copy link

Running macOS with the GNU version of sed installed, replacing the BSD version of sed (because all the bitcoin core devs run linux I suppose?) I encountered this issue where I think the empty string parameter is unnecessary:

--> make mount-volume SIMFILE_PATH=/Users/matthewzipkin/.warnet/warnet/warnet/simln/sim.json
chmod +x ./docker/setup-volume.sh && ./docker/setup-volume.sh "/Users/matthewzipkin/.warnet/warnet/warnet/simln/sim.json"
sed: can't read s|/Users/matthewzipkin/.warnet/warnet/warnet/simln/tls.cert|/data/lnd/warnet_ln_000000/tls.cert|: No such file or directory
sed: can't read s|/Users/matthewzipkin/.warnet/warnet/warnet/simln/admin.macaroon|/data/lnd/warnet_ln_000000/admin.macaroon|: No such file or directory
sed: can't read s|/Users/matthewzipkin/.warnet/warnet/warnet/simln/tls.cert|/data/lnd/warnet_ln_000001/tls.cert|: No such file or directory
sed: can't read s|/Users/matthewzipkin/.warnet/warnet/warnet/simln/admin.macaroon|/data/lnd/warnet_ln_000001/admin.macaroon|: No such file or directory
sed: can't read s|/Users/matthewzipkin/.warnet/warnet/warnet/simln/tls.cert|/data/lnd/warnet_ln_000002/tls.cert|: No such file or directory
sed: can't read s|/Users/matthewzipkin/.warnet/warnet/warnet/simln/admin.macaroon|/data/lnd/warnet_ln_000002/admin.macaroon|: No such file or directory
simln-data

In addition, the sed command won't work for my particular use-case (exporting from warnet) because my cert and macaroon files are not named exactly how you expect:

sed -i '' 's|'$(dirname $NODE_TLS_PATH_ON_HOST)'/tls.cert|/data/lnd/'$NODE_ID'/tls.cert|' $STAGING_DIR/sim.json

but my sim.json file...

{
  "nodes":
  [
    {
      "LND":
      {
        "id": "warnet_ln_000000",
        "address": "https://100.13.229.42:10009",
        "macaroon": "/Users/matthewzipkin/.warnet/warnet/warnet/simln/warnet_ln_000000_admin.macaroon",
        "cert": "/Users/matthewzipkin/.warnet/warnet/warnet/simln/warnet_ln_000000_tls.cert"
      }
    },
...
etc
@pinheadmz pinheadmz added the bug Something isn't working label Oct 10, 2023
@carlaKC carlaKC added this to the V1 Minor Improvements milestone Oct 11, 2023
@Extheoisah Extheoisah self-assigned this Oct 11, 2023
@Extheoisah
Copy link
Contributor

I'll look into this since I started it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed High Priority
Projects
None yet
Development

No branches or pull requests

3 participants