Skip to content

Commit

Permalink
fix: enable gcompat and init script for cosmovisor
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriaCarrera committed May 10, 2024
1 parent a3a472c commit ad0723a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tools/cosmovisor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ 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

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"]
CMD ["cosmovisor"]
4 changes: 4 additions & 0 deletions tools/cosmovisor/init.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ad0723a

Please sign in to comment.