From ad0723adf6329740da10c7ec5f2423e5976d3adb Mon Sep 17 00:00:00 2001 From: AdriaCarrera Date: Fri, 10 May 2024 11:58:38 +0200 Subject: [PATCH] fix: enable gcompat and init script for cosmovisor --- tools/cosmovisor/Dockerfile | 11 ++++++----- tools/cosmovisor/init.sh | 4 ++++ 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 tools/cosmovisor/init.sh diff --git a/tools/cosmovisor/Dockerfile b/tools/cosmovisor/Dockerfile index a1e58c0..d33e1f1 100644 --- a/tools/cosmovisor/Dockerfile +++ b/tools/cosmovisor/Dockerfile @@ -13,7 +13,7 @@ RUN make cosmovisor FROM alpine:3.17.3 -ENV DAEMON_HOME=/root/.cosmovisor +ENV DAEMON_HOME=/root/.exrpd ENV DAEMON_NAME=exrpd ENV DAEMON_ALLOW_DOWNLOAD_BINARIES=true ENV DAEMON_RESTART_AFTER_UPGRADE=true @@ -21,9 +21,10 @@ ENV DAEMON_RESTART_AFTER_UPGRADE=true COPY --from=build /root/cosmos-sdk/cosmovisor/cosmovisor /usr/local/bin/cosmovisor COPY --from=peersyst/xrp-evm-blockchain:latest /usr/bin/exrpd /usr/local/bin/exrpd -RUN mkdir -p $DAEMON_HOME/data -RUN mkdir -p $DAEMON_HOME/cosmovisor/genesis/bin +ADD init.sh /usr/local/bin/initialize +RUN chmod +x /usr/local/bin/initialize -RUN ln -s /usr/local/bin/exrpd $DAEMON_HOME/cosmovisor/genesis/bin/exrpd +RUN apk add gcompat +RUN ln -sf ../../lib/libgcompat.so.0 /usr/lib/libresolv.so.2 -CMD ["cosmovisor"] \ No newline at end of file +CMD ["cosmovisor"] diff --git a/tools/cosmovisor/init.sh b/tools/cosmovisor/init.sh new file mode 100644 index 0000000..74085d8 --- /dev/null +++ b/tools/cosmovisor/init.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +mkdir -p $DAEMON_HOME/cosmovisor/genesis/bin +ln -s /usr/local/bin/exrpd $DAEMON_HOME/cosmovisor/genesis/bin/exrpd