mirror of
https://github.com/runcitadel/core.git
synced 2024-11-11 16:30:38 +00:00
Merge remote-tracking branch 'origin/c-lightning' into liquid
This commit is contained in:
commit
419522f138
|
@ -15,14 +15,6 @@ def permissions():
|
|||
'${LND_DATA_DIR}:/lnd:ro'
|
||||
]
|
||||
},
|
||||
"c-lightning": {
|
||||
"environment_allow": [
|
||||
"C_LIGHTNING_IP"
|
||||
],
|
||||
"volumes": [
|
||||
'${C_LIGHTNING_DATA_DIR}:/c-lightning:ro'
|
||||
]
|
||||
},
|
||||
"bitcoind": {
|
||||
"environment_allow": [
|
||||
"BITCOIN_IP",
|
||||
|
@ -52,7 +44,9 @@ def permissions():
|
|||
"environment_allow": [
|
||||
"C_LIGHTNING_IP"
|
||||
],
|
||||
"volumes": []
|
||||
"volumes": [
|
||||
'${C_LIGHTNING_DATA_DIR}:/c-lightning:ro'
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -65,12 +65,12 @@ def convertDataDirToVolumeGen3(app: App) -> AppStage2:
|
|||
container.volumes.append('${BITCOIN_DATA_DIR}:' + container.mounts.bitcoin)
|
||||
if container.mounts.c_lightning:
|
||||
if not 'c-lightning' in app.metadata.dependencies:
|
||||
print("Warning: container {} of app {} defines lnd mount dir but doesn't request lnd permission".format(container.name, app.metadata.name))
|
||||
print("Warning: container {} of app {} defines c-lightning mount dir but doesn't request c-lightning permission".format(container.name, app.metadata.name))
|
||||
# Skip this container
|
||||
continue
|
||||
# Also skip the container if container.lnd_mount_dir contains a :
|
||||
if container.mounts.c_lightning.find(":") == -1:
|
||||
container.volumes.append('${C_LIGHTNING_DATA_DIR}:' + container.mounts.bitcoin)
|
||||
container.volumes.append('${C_LIGHTNING_DATA_DIR}:' + container.mounts.c_lightning)
|
||||
del container.mounts
|
||||
return app
|
||||
|
||||
|
@ -81,7 +81,7 @@ def createComposeConfigFromV3(app: dict, nodeRoot: str):
|
|||
newApp: App = generateApp(app)
|
||||
for container in newApp.containers:
|
||||
# TODO: Make this dynamic and not hardcoded
|
||||
if container.requires and "c-lightning" in container.requires:
|
||||
if container.requires and "lnd" in container.requires:
|
||||
ignoredContainers.append(container.name)
|
||||
container.ignored = True
|
||||
elif container.requires:
|
||||
|
|
|
@ -227,7 +227,7 @@ services:
|
|||
ipv4_address: $ELECTRUM_IP
|
||||
c-lightning:
|
||||
container_name: c-lightning
|
||||
image: ghcr.io/runcitadel/c-lightning:main@sha256:ce7c30c858047c75ed13e88fda2d731db44627d6b238ad17c46cbef0c09aa67c
|
||||
image: ghcr.io/runcitadel/core-ln:main@sha256:827264070bb07b74d695ca8e6505a241c1a8fbbef84b7a88cdee258811eb3112
|
||||
environment:
|
||||
LIGHTNINGD_NETWORK: bitcoin
|
||||
CL_REST_STATE_DIR: /data/.lightning
|
||||
|
|
Loading…
Reference in New Issue
Block a user