From f9a4e49c71fd08747d2c3b50d3101aaa06ed9327 Mon Sep 17 00:00:00 2001 From: Peter Neuroth Date: Tue, 9 Jul 2024 17:36:55 +0200 Subject: [PATCH] ci: Ignore hash in clnvm We currently iterate quite fast on gl flavoured versions. With this commit we ignore the shasum of the downloaded cln binary. It would be better if we check on a signature in the future. Signed-off-by: Peter Neuroth --- Makefile | 1 + docker/gl-testing/Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1c2b1afe..7cf34464 100644 --- a/Makefile +++ b/Makefile @@ -103,6 +103,7 @@ docker-image: ${REPO_ROOT}/docker/gl-testing/Dockerfile --build-arg DOCKER_USER=$(shell whoami) \ --build-arg UID=$(shell id -u) \ --build-arg GID=$(shell id -g) \ + --build-arg GL_TESTING_IGNORE_HASH=1 \ -t gltesting \ -f docker/gl-testing/Dockerfile \ . diff --git a/docker/gl-testing/Dockerfile b/docker/gl-testing/Dockerfile index d9c343ac..cf696b35 100644 --- a/docker/gl-testing/Dockerfile +++ b/docker/gl-testing/Dockerfile @@ -112,13 +112,15 @@ RUN chmod a+rwx -R $CARGO_HOME # Download all versions so they can be copied to our dev-container FROM python-builder as cln-downloader +ARG GL_TESTING_IGNORE_HASH=0 + RUN mkdir -p /opt/cln/ ENV CLNVM_CACHE_DIR=/opt/cln ADD libs/cln-version-manager /repo/libs/cln-version-manager RUN cd /repo/libs/cln-version-manager; python -m pip install -e . -RUN python -m clnvm get-all +RUN GL_TESTING_IGNORE_HASH=${GL_TESTING_IGNORE_HASH} python -m clnvm get-all # ------------------------------------- # STAGE: bitcoin-downloader