GithubHelp home page GithubHelp logo

Comments (3)

jamaljsr avatar jamaljsr commented on August 22, 2024

Hey @orbitalturtle I haven't done this myself but it should be possible. Off the top of my head, I can think of two approaches that may work.

  1. Create a custom docker image which includes your plugin's .jar file in the image and add the new image in Polar. Create a new network including one or more nodes which use your custom image. Before starting the network, edit the command line args by right-clicking on the node then clicking on Advanced Options. In here you should be able to include the path to your .jar file to the startup command. Just make sure you use the path within the docker image's file system.
  2. I'm not sure if this will work, but it may be worth a try as it doesn't require creating a custom Docker image. First create a new network with just and bitcoind and an Eclair node. Start the network one then stop it after the nodes successfully start up. On your machine's file system, open up the dir ~/.polar/networks/1/volumes/eclair/alice/ and you should see a bunch of files that Eclair creates on startup. This dir maps to the path /home/eclair/.eclair inside of the Docker container that the Eclair node runs in. Copy your .jar file into this folder. Back in Polar, right-click on the Eclair node and click Advanced Options. Pre-fill the default command and add the arg /home/eclair/.eclair/<plugin1.jar> using the actual name of your plugin .jar file. Save the options then try to start the network. Check the logs for the eclair node to see if it loads the plugin successfully or fails.

I hope this helps point you in the right direction. If you have any further questions, please feel free to reply here.

from polar.

orbitalturtle avatar orbitalturtle commented on August 22, 2024

Thank you @jamaljsr! The first option worked for me with a couple of changes. Figure I'll outline what I did if this is helpful for anyone else:

  • In addition to copying the plugin jar via the Dockerfile, I needed to make a few updates to the custom Docker image for the latest version of Eclair. Eclair-node-gui is now eclair-front, and maybe one or two other small things IIRC. (I'd be happy to add these updates in a PR if that sounds helpful.)
  • Initially I tried loading the BOLT 12 plugin jar to /home/eclair in the docker filesystem. Weirdly, loading the BOLT 12 plugin as I normally would, i.e. polar-eclair /home/eclair/bolt12-tip-jar-0.9.1-SNAPSHOT.jar ...<CONFIG_OPTIONS>, it wasn't detected by eclair. Once I added the necessary config options, it still didn't seem to detect that I was passing in a plugin jar, BUT Eclair errored saying it expected the plugin to be located at /app/offer . So if I changed bolt12-tip-jar-0.9.1-SNAPSHOT.jar to offer and moved it to the /app folder, it worked just fine.

from polar.

jamaljsr avatar jamaljsr commented on August 22, 2024

Awesome! I'm glad you were able to get it working. Thanks for sharing how you did it. I'm sure others in the future will find this helpful.

from polar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.