From 469f421efcabea2b722b845531961bfd06dc2425 Mon Sep 17 00:00:00 2001 From: Sanaz Taheri Boshrooyeh <35961250+staheri14@users.noreply.github.com> Date: Fri, 25 Mar 2022 12:16:02 -0800 Subject: [PATCH] chore(rln-relay): Copy rln lib into wakunode2 docker container (#909) * Update Dockerfile * makes librln optional * adds comments * marks the entire rlnlib directory optional --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8fcab56d4..14d91a808 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,9 @@ RUN ln -s /usr/lib/libpcre.so /usr/lib/libpcre.so.3 COPY --from=nim-build /app/build/$MAKE_TARGET /usr/local/bin/ # If rln enabled: fix for 'Error loading shared library vendor/rln/target/debug/librln.so: No such file or directory' -# COPY --from=nim-build /app/vendor/rln/target/debug/librln.so vendor/rln/target/debug/librln.so +# It is vital to append * to the optional files, otherwise, COPY will throw an error +# the librln.so may/may not exist depending on whether the rln compiler flag is part of NIM_PARAMS or not +COPY --from=nim-build /app*/vendor/rln/target/debug/librln.so vendor/rln/target/debug/librln.so # Copy migration scripts for DB upgrades COPY --from=nim-build /app/waku/v2/node/storage/migration/migrations_scripts/ /app/waku/v2/node/storage/migration/migrations_scripts/