Skip to content

Commit

Permalink
feat: add cln
Browse files Browse the repository at this point in the history
  • Loading branch information
vafanassieff committed Nov 27, 2023
1 parent 6e58d93 commit 8ae6b0f
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cln.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: cln

on:
workflow_dispatch:
inputs:
force:
type: boolean
description: Force build
required: false
default: false
push:
branches:
- master
paths:
- docker/cln/**

jobs:
build:
uses: ./.github/workflows/bake.yml
secrets: inherit
with:
path: docker/cln
target: release
18 changes: 18 additions & 0 deletions docker/cln/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ARG VERSION

FROM elementsproject/lightningd:${VERSION} as builder

FROM lnmarkets/debian:bookworm

RUN apt update -y && apt install -y \
libpq-dev \
python3

COPY --from=builder /usr/local/bin/lightningd /usr/local/bin/lightningd
COPY --from=builder /usr/local/bin/lightning-cli /usr/local/bin/lightning-cli
COPY --from=builder /usr/local/bin/lightning-hsmtool /usr/local/bin/lightning-hsmtool
COPY --from=builder /usr/local/libexec/c-lightning /usr/local/libexec/c-lightning

EXPOSE 9735 9835

ENTRYPOINT [ "/docker/entrypoint.sh", "lightningd" ]
3 changes: 3 additions & 0 deletions docker/cln/image.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VERSION="v23.08.1"
NAME="cln"
DESCRIPTION="Lightning Network implementation focusing on spec compliance and performance"
2 changes: 2 additions & 0 deletions docker/ord/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ ENV RUST_LOG=info

COPY --from=builder /app/ord/target/release/ord /usr/bin/ord

EXPOSE 8080

ENTRYPOINT [ "/docker/entrypoint.sh", "ord" ]

0 comments on commit 8ae6b0f

Please sign in to comment.