The Dockerfiles used to build the images that the Polar app needs to spin up nodes quickly across multiple operating systems.
Warning: These images are not hardened and shouldn't be used to store real bitcoin. These images are intended solely to be used in simnet/regtest environments
0.19.1
(bitcoind/Dockerfile)0.19.0.1
(bitcoind/Dockerfile)0.18.1
(bitcoind/Dockerfile)
Building the image
$ cd bitcoind
$ docker build --build-arg BITCOIN_VERSION=<version> -t polarlightning/bitcoind:<version> .
Replace <version>
with the desired bitcoind version (ex: 0.18.1
)
Push to Docker Hub
$ docker push polarlightning/bitcoind:<version>
0.9.1-beta
(lnd/Dockerfile)0.9.0-beta
(lnd/Dockerfile)0.8.2-beta
(lnd/Dockerfile)0.8.0-beta
(lnd/Dockerfile)0.7.1-beta
(lnd/Dockerfile)
Building the image
$ cd lnd
$ docker build --build-arg LND_VERSION=<version> -t polarlightning/lnd:<version> .
Replace <version>
with the desired LND version (ex: 0.7.1-beta
)
Push to Docker Hub
$ docker push polarlightning/lnd:<version>
0.8.1
(clightning/Dockerfile)0.8.0
(clightning/Dockerfile)
Building the image
$ cd clightning
$ docker build --build-arg CLN_VERSION=<version> -t polarlightning/clightning:<version> .
Replace <version>
with the desired c-lightning version (ex: 0.8.0
).
Push to Docker Hub
$ docker push polarlightning/clightning:<version>
These docker images can be updated in-between Polar releases. This allows developers to use the latest Bitcoin & Lightning versions shortly after they are released, without needing to download and install a new version of Polar.
To make new docker image versions available:
- Build the new docker image using the commands above
- Push the image to Docker Hub
- Update the
/docker/nodes.json
file- add the new version to the
versions
array of the associated implementation - update the
latest
property of the implementation if necessary - increment the root-level
version
number by1
- add the new version to the
Once the updated nodes.json
file is committed to master, the new images can be used in Polar by following these steps:
- Create a Network or view an existing Network
- In the Network Designer sidebar, click on the Show All Versions toggle
- At the bottom of the node list, click on the Check for new Node Versions link
- A dialog will open displaying the new versions available
- Click the Add New Versions button to begin using them