Skip to content

Commit

Permalink
feat: add cosmovisor support for v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriaCarrera committed Aug 29, 2024
1 parent c709443 commit 1e29e53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/cosmovisor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ 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
COPY --from=peersyst/exrp:v2.0.0 /usr/bin/exrpd /usr/local/bin/exrpd_v2.0.0
COPY --from=peersyst/exrp:v3.0.0 /usr/bin/exrpd /usr/local/bin/exrpd_v3.0.0

ADD tools/cosmovisor/init.sh /usr/local/bin/initialize
RUN chmod +x /usr/local/bin/initialize
Expand Down
6 changes: 6 additions & 0 deletions tools/cosmovisor/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@

mkdir -p $DAEMON_HOME/cosmovisor/genesis/bin
ln -s /usr/local/bin/exrpd $DAEMON_HOME/cosmovisor/genesis/bin/exrpd
mkdir -p $DAEMON_HOME/cosmovisor/upgrades/v2.0.0/bin
cp /usr/local/bin/exrpd_v2.0.0 $DAEMON_HOME/cosmovisor/upgrades/v2.0.0/bin/exrpd
mkdir -p $DAEMON_HOME/cosmovisor/upgrades/v3.0.0/bin
cp /usr/local/bin/exrpd_v3.0.0 $DAEMON_HOME/cosmovisor/upgrades/v3.0.0/bin/exrpd

ln -s $DAEMON_HOME/cosmovisor/upgrades/v2.0.0 $DAEMON_HOME/cosmovisor/current

0 comments on commit 1e29e53

Please sign in to comment.