Skip to content

Commit

Permalink
ci: adding commondo plugin inside docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Jul 16, 2022
1 parent 972ce76 commit 22e40ed
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing_rpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Integration testing
run: |
cd docker
docker-compose up --exit-code-from cln --quiet-pull
docker-compose up --exit-code-from cln
- name: Upload lightning log
uses: actions/upload-artifact@v2
if: failure()
Expand Down
10 changes: 9 additions & 1 deletion docker/Dockerfile.integration_test
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM ubuntu:20.04
LABEL mantainer="Vincenzo Palazzo [email protected]"

ENV TZ=Europe/Minsk
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# Ubuntu utils
RUN apt-get update && apt-get install -y \
software-properties-common wget && \
software-properties-common wget git python3-pip python3 && \
sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -' && \
sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list' && \
apt-get update && apt-get install -y dart
Expand All @@ -22,6 +25,11 @@ RUN rm -r clightning-v$CLIGHTNING_VERSION-Ubuntu-20.04.tar.xz

ENV PATH=/opt/clightning-v$CLIGHTNING_VERSION/bin:$PATH

# Remove when commando is inside cln release
RUN git clone https://github.com/lightningd/plugins.git && \
cd plugins/commando && pip3 install -r requirements.txt && cd .. && \
cp -rf commando/ /opt/commando/

WORKDIR workdir

CMD ["./entrypoint.sh"]
1 change: 1 addition & 0 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
build:
context: ../
dockerfile: ./docker/Dockerfile.integration_test
network_mode: "host"
depends_on:
- lnlambda
volumes:
Expand Down
2 changes: 2 additions & 0 deletions docker/sandbox/lightning_dir_one/config
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ log-level=debug
plugin=/workdir/code/packages/cln_plugin/cln_dart
plugin=/workdir/code/packages/cln_plugin/cln_class_dart

plugin=/opt/commando/commando.py

log-file=/workdir/node_one.log
allow-deprecated-apis=false
2 changes: 1 addition & 1 deletion packages/lnlambda/test/lnlambda_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void main() {
nodeID: getInfo["id"]!,
host: "52.55.124.1:19735",
rune: commandRune["rune"],
lambdaServer: "127.0.0.1:9002");
lambdaServer: "http://127.0.0.1:9002");
var response = client.simpleCall("getinfo", params: {});
LogManager.getInstance.debug("Response from lambda $response");
});
Expand Down

0 comments on commit 22e40ed

Please sign in to comment.