deploy: 590e8dfa014a3caf9da0e650891ebab4f0979880

This commit is contained in:
jm-clius 2022-10-05 19:36:31 +00:00
parent 886211a3f0
commit 4bb0a199a7

View File

@ -4,6 +4,7 @@ FROM alpine:3.16 AS nim-build
ARG NIMFLAGS
ARG MAKE_TARGET=wakunode2
ARG RLN=true
# Get build tools and required header files
RUN apk add --no-cache bash git cargo build-base pcre-dev linux-headers
@ -27,7 +28,7 @@ RUN git submodule update --init --recursive
RUN make -j$(nproc) deps
# Build the final node binary
RUN make -j$(nproc) $MAKE_TARGET NIMFLAGS="$NIMFLAGS"
RUN make -j$(nproc) $MAKE_TARGET NIMFLAGS="$NIMFLAGS" RLN="$RLN"
# ACTUAL IMAGE -------------------------------------------------------
@ -52,6 +53,10 @@ RUN ln -s /usr/lib/libpcre.so /usr/lib/libpcre.so.3
# Copy to separate location to accomodate different MAKE_TARGET values
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/zerokit/target/release/librln.so vendor/zerokit/target/release/librln.so
COPY --from=nim-build /app/vendor/zerokit/rln/resources/ vendor/zerokit/rln/resources/
# 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/