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

feat(images): add support for LND & Bitcoin Core latest releases #813

Merged
merged 2 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ With Polar you can:

Supported Network Node Versions:

- [LND](https://github.com/lightningnetwork/lnd) - v0.17.0, v0.16.4, v0.16.2, v0.16.1, v0.16.0, v0.15.5, v0.14.3, v0.13.1
- [LND](https://github.com/lightningnetwork/lnd) - v0.17.3, v0.17.2, v0.17.1, v0.17.0, v0.16.4, v0.16.2, v0.16.1, v0.16.0, v0.15.5, v0.14.3, v0.13.1
- [Core Lightning](https://github.com/ElementsProject/lightning) - v23.05.2, v23.02.2, v22.11, v0.12.0, v0.11.2, v0.10.2
- [Eclair](https://github.com/ACINQ/eclair/) - v0.9.0, v0.8.0, v0.7.0, v0.6.2, v0.5.0
- [Bitcoin Core](https://github.com/bitcoin/bitcoin) - v25.0, v24.0, v23.0, v22.0, v0.21.1
- [Bitcoin Core](https://github.com/bitcoin/bitcoin) - v26.0, v25.0, v24.0, v23.0, v22.0, v0.21.1
- [Taproot Assets](https://github.com/lightninglabs/taproot-assets) - v0.3.0

## Dependencies
Expand Down
4 changes: 4 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ $ docker buildx inspect --bootstrap

### Tags

- `26.0` ([bitcoind/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/bitcoind/Dockerfile))
- `25.0` ([bitcoind/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/bitcoind/Dockerfile))
- `24.0` ([bitcoind/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/bitcoind/Dockerfile))
- `23.0` ([bitcoind/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/bitcoind/Dockerfile))
Expand All @@ -46,6 +47,9 @@ Replace `<version>` with the desired bitcoind version (ex: `0.18.1`)

### Tags

- `0.17.3-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
- `0.17.2-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
- `0.17.1-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
- `0.17.0-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
- `0.16.4-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
- `0.16.2-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
Expand Down
30 changes: 18 additions & 12 deletions docker/nodes.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"version": 55,
"version": 56,
"images": {
"LND": {
"latest": "0.17.0-beta",
"latest": "0.17.3-beta",
"versions": [
"0.17.3-beta",
"0.17.2-beta",
"0.17.1-beta",
"0.17.0-beta",
"0.16.4-beta",
"0.16.2-beta",
Expand All @@ -14,14 +17,17 @@
"0.13.1-beta"
],
"compatibility": {
"0.17.0-beta": "25.0",
"0.16.4-beta": "25.0",
"0.16.2-beta": "25.0",
"0.16.1-beta": "25.0",
"0.16.0-beta": "25.0",
"0.15.5-beta": "25.0",
"0.14.3-beta": "25.0",
"0.13.1-beta": "25.0"
"0.17.3-beta": "26.0",
"0.17.2-beta": "26.0",
"0.17.1-beta": "26.0",
"0.17.0-beta": "26.0",
"0.16.4-beta": "26.0",
"0.16.2-beta": "26.0",
"0.16.1-beta": "26.0",
"0.16.0-beta": "26.0",
"0.15.5-beta": "26.0",
"0.14.3-beta": "26.0",
"0.13.1-beta": "26.0"
}
},
"c-lightning": {
Expand All @@ -33,8 +39,8 @@
"versions": ["0.9.0", "0.8.0", "0.7.0", "0.6.2", "0.5.0"]
},
"bitcoind": {
"latest": "25.0",
"versions": ["25.0", "24.0", "23.0", "22.0", "0.21.1"]
"latest": "26.0",
"versions": ["26.0", "25.0", "24.0", "23.0", "22.0", "0.21.1"]
},
"btcd": {
"latest": "",
Expand Down
30 changes: 18 additions & 12 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,14 @@ export const REPO_STATE_URL =
* are pushed to Docker Hub, this list should be updated along with the /docker/nodes.json file.
*/
export const defaultRepoState: DockerRepoState = {
version: 55,
version: 56,
images: {
LND: {
latest: '0.17.0-beta',
latest: '0.17.3-beta',
versions: [
'0.17.3-beta',
'0.17.2-beta',
'0.17.1-beta',
'0.17.0-beta',
'0.16.4-beta',
'0.16.2-beta',
Expand All @@ -271,14 +274,17 @@ export const defaultRepoState: DockerRepoState = {
// not all LND versions are compatible with all bitcoind versions.
// this mapping specifies the highest compatible bitcoind for each LND version
compatibility: {
'0.17.0-beta': '25.0',
'0.16.4-beta': '25.0',
'0.16.2-beta': '25.0',
'0.16.1-beta': '25.0',
'0.16.0-beta': '25.0',
'0.15.5-beta': '25.0',
'0.14.3-beta': '25.0',
'0.13.1-beta': '25.0',
'0.17.3-beta': '26.0',
'0.17.2-beta': '26.0',
'0.17.1-beta': '26.0',
'0.17.0-beta': '26.0',
'0.16.4-beta': '26.0',
'0.16.2-beta': '26.0',
'0.16.1-beta': '26.0',
'0.16.0-beta': '26.0',
'0.15.5-beta': '26.0',
'0.14.3-beta': '26.0',
'0.13.1-beta': '26.0',
},
},
'c-lightning': {
Expand All @@ -290,8 +296,8 @@ export const defaultRepoState: DockerRepoState = {
versions: ['0.9.0', '0.8.0', '0.7.0', '0.6.2', '0.5.0'],
},
bitcoind: {
latest: '25.0',
versions: ['25.0', '24.0', '23.0', '22.0', '0.21.1'],
latest: '26.0',
versions: ['26.0', '25.0', '24.0', '23.0', '22.0', '0.21.1'],
},
btcd: {
latest: '',
Expand Down
23 changes: 17 additions & 6 deletions src/utils/tests/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ export const testRepoState: DockerRepoState = {
version: 49,
images: {
LND: {
latest: '0.16.2-beta',
latest: '0.17.3-beta',
versions: [
'0.17.3-beta',
'0.17.2-beta',
'0.17.1-beta',
'0.17.0-beta',
'0.16.4-beta',
'0.16.2-beta',
'0.16.1-beta',
'0.16.0-beta',
Expand Down Expand Up @@ -88,6 +93,11 @@ export const testRepoState: DockerRepoState = {
// not all LND versions are compatible with all bitcoind versions.
// this mapping specifies the highest compatible bitcoind for each LND version
compatibility: {
'0.17.3-beta': '26.0',
'0.17.2-beta': '26.0',
'0.17.1-beta': '26.0',
'0.17.0-beta': '26.0',
'0.16.4-beta': '26.0',
'0.16.2-beta': '25.0',
'0.16.1-beta': '25.0',
'0.16.0-beta': '25.0',
Expand Down Expand Up @@ -118,16 +128,17 @@ export const testRepoState: DockerRepoState = {
},
},
'c-lightning': {
latest: '22.11',
versions: ['22.11', '0.12.0', '0.11.2', '0.10.2'],
latest: '23.05.2',
versions: ['23.05.2', '23.02.2', '22.11', '0.12.0', '0.11.2', '0.10.2'],
},
eclair: {
latest: '0.8.0',
versions: ['0.8.0', '0.7.0', '0.6.2', '0.5.0', '0.4.2'],
latest: '0.9.0',
versions: ['0.9.0', '0.8.0', '0.7.0', '0.6.2', '0.5.0'],
},
bitcoind: {
latest: '25.0',
latest: '26.0',
versions: [
'26.0',
'25.0',
'24.0',
'23.0',
Expand Down