From 54d64a63fed236bd33667db225a3a4f6cccdb71c Mon Sep 17 00:00:00 2001 From: Sanaz Taheri Boshrooyeh <35961250+staheri14@users.noreply.github.com> Date: Thu, 31 Mar 2022 12:15:00 -0800 Subject: [PATCH] feat: make the rln-relay protocol available in the waku docker image (#924) --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5820facae..b64686655 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ FROM alpine:3.15 AS nim-build ARG NIM_PARAMS ARG MAKE_TARGET=wakunode2 +ARG RLN=true # Get build tools and required header files RUN apk add --no-cache bash git rust cargo build-base pcre-dev linux-headers @@ -18,7 +19,7 @@ RUN git submodule update --init --recursive RUN make -j$(nproc) deps # Build the final node binary -RUN make -j$(nproc) $MAKE_TARGET NIM_PARAMS="$NIM_PARAMS" +RUN make -j$(nproc) $MAKE_TARGET NIM_PARAMS="$NIM_PARAMS" RLN="$RLN" # ACTUAL IMAGE ------------------------------------------------------- @@ -44,7 +45,7 @@ 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 +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/