feat: make the rln-relay protocol available in the waku docker image (#924)

This commit is contained in:
Sanaz Taheri Boshrooyeh 2022-03-31 12:15:00 -08:00 committed by GitHub
parent 063c91aa7e
commit 54d64a63fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ FROM alpine:3.15 AS nim-build
ARG NIM_PARAMS ARG NIM_PARAMS
ARG MAKE_TARGET=wakunode2 ARG MAKE_TARGET=wakunode2
ARG RLN=true
# Get build tools and required header files # Get build tools and required header files
RUN apk add --no-cache bash git rust cargo build-base pcre-dev linux-headers 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 RUN make -j$(nproc) deps
# Build the final node binary # 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 ------------------------------------------------------- # 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/ 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' # 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 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/ COPY --from=nim-build /app/waku/v2/node/storage/migration/migrations_scripts/ /app/waku/v2/node/storage/migration/migrations_scripts/