Skip to content

Commit

Permalink
Pin to v0.45.5 fork for Cosmos SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdotb committed Jul 1, 2022
1 parent 35c9c8c commit d82bae1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 58 deletions.
1 change: 0 additions & 1 deletion .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:

call-build:
name: "Build"
needs: call-lint
uses: ./.github/workflows/build.yml

call-test:
Expand Down
41 changes: 1 addition & 40 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
### STAGE 1: Build node binary pre-requisites ###
###############################################################

FROM golang:1.17.8-buster as builder
FROM golang:1.17.11-buster as builder

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
curl \
git \
libprotobuf-dev \
&& rm -rf /var/lib/apt/lists/*

Expand Down Expand Up @@ -101,41 +100,3 @@ RUN chmod +x /bin/node-start

# Default entrypoint for cheqd-noded CLI usage
ENTRYPOINT [ "node-start" ]


###############################################################
### STAGE 4: Build Cosmovisor ###
###############################################################

FROM golang:1.17.8-buster AS cosmos_builder

RUN git clone https://github.com/cosmos/cosmos-sdk.git

WORKDIR /go/cosmos-sdk/

RUN git status \
&& git checkout cosmovisor/v1.1.0 \
&& make cosmovisor


###############################################################
### STAGE 5: Cosmovisor-based node image ###
###############################################################

FROM base AS cosmovisor

COPY --from=cosmos_builder /go/cosmos-sdk/cosmovisor/cosmovisor /bin
COPY --chown=cheqd:cheqd docker/cosmovisor.sh /bin/cosmovisor.sh

ARG CHEQD_HOME_DIR="/home/cheqd"

RUN chmod +x /bin/cosmovisor.sh

USER cheqd

ENV DAEMON_HOME=${CHEQD_HOME_DIR}/.cheqdnode
ENV DAEMON_NAME=cheqd-noded
ENV DAEMON_ALLOW_DOWNLOAD_BINARIES=true
ENV DAEMON_RESTART_AFTER_UPGRADE=true

ENTRYPOINT [ "cosmovisor.sh" ]
14 changes: 0 additions & 14 deletions docker/cosmovisor.sh

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ require (
)

replace (
github.com/cosmos/cosmos-sdk => github.com/cheqd/cosmos-sdk v0.45.4-cheqd-tag
github.com/cosmos/cosmos-sdk => github.com/cheqd/cosmos-sdk v0.45.5-cheqd-tag

// Fix upstream GHSA-h395-qcrw-5vmq vulnerability.
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL
github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=
github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/checkpoint-restore/go-criu/v5 v5.0.0/go.mod h1:cfwC0EG7HMUenopBsUf9d89JlCLQIfgVcNsNN0t6T2M=
github.com/cheqd/cosmos-sdk v0.45.4-cheqd-tag h1:vQZAlbsqwPkC8DdwRI3TpRJ8ofoqKzAkPvHNzcrx9L0=
github.com/cheqd/cosmos-sdk v0.45.4-cheqd-tag/go.mod h1:WOqtDxN3eCCmnYLVla10xG7lEXkFjpTaqm2a2WasgCc=
github.com/cheqd/cosmos-sdk v0.45.5-cheqd-tag h1:Uky4sG2mlbQmEIIaXcpJMKwUQ3BkBJVz2HVjyAWtX0o=
github.com/cheqd/cosmos-sdk v0.45.5-cheqd-tag/go.mod h1:WOqtDxN3eCCmnYLVla10xG7lEXkFjpTaqm2a2WasgCc=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
Expand Down

0 comments on commit d82bae1

Please sign in to comment.