I cloned https://github.com/cosmos/cosmos-sdk and then tried to spin it up.
$ (main) docker-compose up
Pulling simdnode0 (cosmossdk/simd:)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.
Continue with the new image? [yN]y
Pulling simdnode0 (cosmossdk/simd:)...
ERROR: pull access denied for cosmossdk/simd, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
The directory simd
does not exist.
$ (main) tree -L 1
├── api
├── baseapp
├── buf.work.yaml
├── CHANGELOG.md
├── client
├── cliff.toml
├── codec
├── CODE_OF_CONDUCT.md
├── CODING_GUIDELINES.md
├── collections
├── contrib
├── CONTRIBUTING.md
├── core
├── crypto
├── depinject
├── docker-compose.yml
├── Dockerfile
├── docs
├── errors
├── fuzz
├── go.mod
├── go.sum
├── go.work.example
├── indexer
├── internal
├── LICENSE
├── log
├── Makefile
├── math
├── orm
├── proto
├── README.md
├── RELEASE_PROCESS.md
├── RELEASES.md
├── ROADMAP.md
├── runtime
├── schema
├── scripts
├── SECURITY.md
├── server
├── simapp
├── simsx
├── sonar-project.properties
├── std
├── store
├── systemtests
├── telemetry
├── tests
├── testutil
├── tools
├── types
├── UPGRADING.md
├── UPGRADING_v2.md
├── version
└── x
35 directories, 21 files
Any idea how to spin up a Cosmos-SDK chain and create a basic transaction?
After trying the solution docker build . -t simd:v2.0.0-beta.1
I got a new error:
$ (main) docker build . -t simd:v2.0.0-beta.1
[+] Building 279.9s (36/36) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.77kB 0.0s
=> [internal] load metadata for docker.io/library/alpine:3 2.2s
=> [internal] load metadata for docker.io/library/golang:1.23-alpine 2.5s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 84B 0.0s
=> [build-env 1/27] FROM docker.io/library/golang:1.23-alpine@sha256:6c5c9590f169f77c8046e45c611d3b28fe477789acd8d3762d23d4744de69812 12.4s
=> => resolve docker.io/library/golang:1.23-alpine@sha256:6c5c9590f169f77c8046e45c611d3b28fe477789acd8d3762d23d4744de69812 0.1s
=> => sha256:06f05ace1117d62b655e04f6f73c83617e3e0febc38681dbedf58f477dd0658c 74.05MB / 74.05MB 8.8s
=> => sha256:6c5c9590f169f77c8046e45c611d3b28fe477789acd8d3762d23d4744de69812 10.29kB / 10.29kB 0.0s
=> => sha256:052793ea3143a235a5b2d815ccead8910cfe547b36a1f4c8b070015b89da5eab 1.92kB / 1.92kB 0.0s
=> => sha256:8a6d980675843020a9b50696ec178531295719f6b771fc4d7ff3db87d97934d0 2.08kB / 2.08kB 0.0s
=> => sha256:38a8310d387e375e0ec6fabe047a9149e8eb214073db9f461fee6251fd936a75 3.64MB / 3.64MB 0.6s
=> => sha256:3739efb98791f9f491c500f021f9ed89d20e62445523efb573896836303867d5 299.20kB / 299.20kB 0.5s
=> => sha256:34d97d9959dd1b4bb05c88c529ce0bdcb89ea261e50c87f1ff20366fb0b9d4a6 126B / 126B 0.7s
=> => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 0.8s
=> => extracting sha256:38a8310d387e375e0ec6fabe047a9149e8eb214073db9f461fee6251fd936a75 0.1s
=> => extracting sha256:3739efb98791f9f491c500f021f9ed89d20e62445523efb573896836303867d5 0.1s
=> => extracting sha256:06f05ace1117d62b655e04f6f73c83617e3e0febc38681dbedf58f477dd0658c 3.1s
=> => extracting sha256:34d97d9959dd1b4bb05c88c529ce0bdcb89ea261e50c87f1ff20366fb0b9d4a6 0.0s
=> => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 0.0s
=> [internal] load build context 2.8s
=> => transferring context: 448.90MB 2.8s
=> [stage-1 1/4] FROM docker.io/library/alpine:3@sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f686b9f45 0.9s
=> => resolve docker.io/library/alpine:3@sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f686b9f45 0.0s
=> => sha256:21dc6063fd678b478f57c0e13f47560d0ea4eeba26dfc947b2a4f81f686b9f45 9.22kB / 9.22kB 0.0s
=> => sha256:2c43f33bd1502ec7818bce9eea60e062d04eeadc4aa31cad9dabecb1e48b647b 1.02kB / 1.02kB 0.0s
=> => sha256:4048db5d36726e313ab8f7ffccf2362a34cba69e4cdd49119713483a68641fce 581B / 581B 0.0s
=> => sha256:38a8310d387e375e0ec6fabe047a9149e8eb214073db9f461fee6251fd936a75 3.64MB / 3.64MB 0.6s
=> => extracting sha256:38a8310d387e375e0ec6fabe047a9149e8eb214073db9f461fee6251fd936a75 276.6s
=> [stage-1 2/4] WORKDIR /root 0.2s
=> [stage-1 3/4] RUN apk add --no-cache curl make bash jq sed 5.5s
=> [build-env 2/27] RUN apk add --no-cache curl make git libc-dev bash gcc linux-headers eudev-dev 28.3s
=> [build-env 3/27] WORKDIR /go/src/github.com/cosmos/cosmos-sdk 0.1s
=> [build-env 4/27] COPY go.mod go.sum ./ 0.1s
=> [build-env 5/27] COPY math/go.mod math/go.sum ./math/ 0.1s
=> [build-env 6/27] COPY api/go.mod api/go.sum ./api/ 0.1s
=> [build-env 7/27] COPY core/go.mod core/go.sum ./core/ 0.1s
=> [build-env 8/27] COPY collections/go.mod collections/go.sum ./collections/ 0.1s
=> [build-env 9/27] COPY store/go.mod store/go.sum ./store/ 0.1s
=> [build-env 10/27] COPY x/accounts/go.mod x/accounts/go.sum ./x/accounts/ 0.1s
=> [build-env 11/27] COPY x/tx/go.mod x/tx/go.sum /x/tx/ 0.1s
=> [build-env 12/27] COPY x/protocolpool/go.mod x/protocolpool/go.sum ./x/protocolpool/ 0.1s
=> [build-env 13/27] COPY x/gov/go.mod x/gov/go.sum ./x/gov/ 0.1s
=> [build-env 14/27] COPY x/distribution/go.mod x/distribution/go.sum ./x/distribution/ 0.1s
=> [build-env 15/27] COPY x/slashing/go.mod x/slashing/go.sum ./x/slashing/ 0.1s
=> [build-env 16/27] COPY x/staking/go.mod x/staking/go.sum ./x/staking/ 0.1s
=> [build-env 17/27] COPY x/authz/go.mod x/authz/go.sum ./x/authz/ 0.1s
=> [build-env 18/27] COPY x/bank/go.mod x/bank/go.sum ./x/bank/ 0.1s
=> [build-env 19/27] COPY x/mint/go.mod x/mint/go.sum ./x/mint/ 0.1s
=> [build-env 20/27] COPY x/tx/go.mod x/tx/go.sum ./x/tx/ 0.1s
=> [build-env 21/27] COPY x/consensus/go.mod x/consensus/go.sum ./x/consensus/ 0.1s
=> [build-env 22/27] COPY depinject/go.mod depinject/go.sum ./depinject/ 0.1s
=> [build-env 23/27] COPY core/testing/go.mod core/testing/go.sum ./core/testing/ 0.1s
=> [build-env 24/27] COPY log/go.mod log/go.sum ./log/ 0.1s
=> [build-env 25/27] RUN go mod download 33.8s
=> [build-env 26/27] COPY . . 1.2s
=> [build-env 27/27] RUN GOOS=linux GOARCH=amd64 make build 199.6s
=> ERROR [stage-1 4/4] COPY --from=build-env /go/src/github.com/cosmos/cosmos-sdk/build/simd /usr/bin/simd 0.0s
------
> [stage-1 4/4] COPY --from=build-env /go/src/github.com/cosmos/cosmos-sdk/build/simd /usr/bin/simd:
------
Dockerfile:71
--------------------
69 |
70 | # Copy over binaries from the build-env
71 | >>> COPY --from=build-env /go/src/github.com/cosmos/cosmos-sdk/build/simd /usr/bin/simd
72 |
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref d85a45a1-db1f-4b25-94d8-4822660fca34::tvkp17kpkz14zob5inufcen3h: "/go/src/github.com/cosmos/cosmos-sdk/build/simd": not found
You can refer to this Cosmos tutorial. And, if you want to use the latest stable version, you can replace v0.45.4
with 0.52.0-rc.1
in all the commands.
P.S., When using the latest available version (i.e., v2.0.0-beta.1
at this point in time) ,the docker build
command is throwing an error. So, I've opened this issue along with the suggested solution regarding the same on the Cosmos-SDK GitHub repo.
Edit: The issue is fixed now. So, the docker build
and the rest of the docker
commands for v2.0.0-beta.1
would work fine now.
docker build . -t simd:v2.0.0-beta.1
NOTE: You need to run git pull
in order to pull the latest changes done in the main
branch of the Cosmos-SDK repo fixing the issue. And, you don't have to execute git checkout
to any version, as the latest version is available in the main
branch itself.