test: integrate rosetta-cli into rosetta-ci (#13785)

* add: rosetta-cli to rosetta-ci image

* update: rosetta readme

* doc: rosetta readme

* update: rosetta-cli v0.10.0

* Update contrib/rosetta/README.md

Co-authored-by: Julien Robert <julien@rbrt.fr>

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
Julián Toledano 2022-11-08 09:24:27 +01:00 committed by GitHub
parent b4b4e4a096
commit a3e1b99f6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 26 deletions

View File

@ -17,11 +17,8 @@ Contains the required files to set up rosetta cli and make it work against its w
## Rosetta-ci ## Rosetta-ci
Contains the files for a deterministic network, with fixed keys and some actions on there, to test parsing of msgs and historical balances. This image is used to run a simapp node and to run the rosetta server. Contains the files for a deterministic network, with fixed keys and some actions on there, to test parsing of msgs and historical balances. This image is used to run a simapp node and to run the rosetta server and the rosetta-cli.
Whenever [rosetta-cli](https://github.com/coinbase/rosetta-cli) releases a new version, rosetta-ci/Dockerfile should be updated to reflect the new version.
## Rosetta-cli
The docker image for ./rosetta-cli/Dockerfile is on [docker hub](https://hub.docker.com/r/tendermintdev/rosetta-cli). Whenever rosetta-cli releases a new version, rosetta-cli/Dockerfile should be updated to reflect the new version and pushed to docker hub.
## Notes ## Notes

View File

@ -41,7 +41,7 @@
"bootstrap_balances": "bootstrap.json", "bootstrap_balances": "bootstrap.json",
"interesting_accounts": "", "interesting_accounts": "",
"reconciliation_disabled": false, "reconciliation_disabled": false,
"inactive_discrepency_search_disabled": false, "inactive_discrepancy_search_disabled": false,
"balance_tracking_disabled": false, "balance_tracking_disabled": false,
"coin_tracking_disabled": false, "coin_tracking_disabled": false,
"end_conditions": { "end_conditions": {

View File

@ -32,7 +32,7 @@ services:
- 8080 - 8080
test_rosetta: test_rosetta:
image: tendermintdev/rosetta-cli:v0.6.7 image: rosetta-ci:latest
volumes: volumes:
- ./configuration:/rosetta/config:z - ./configuration:/rosetta/config:z
command: ["./config/run_tests.sh"] command: ["./config/run_tests.sh"]

View File

@ -1,6 +1,14 @@
FROM golang:1.19-alpine as build FROM golang:1.19-alpine as build
RUN apk add --no-cache tar git RUN apk add git tar gcc libc-dev --no-cache
ARG ROSETTA_VERSION="v0.10.0"
# build rosetta CLI
WORKDIR /rosetta
RUN git clone https://github.com/coinbase/rosetta-cli .
RUN git checkout tags/$ROSETTA_VERSION
RUN go build -o rosetta-cli ./main.go
# prepare node data # prepare node data
WORKDIR /node WORKDIR /node
@ -17,6 +25,7 @@ RUN apk add gcc git libc-dev python3 --no-cache
ENV PATH=$PATH:/bin ENV PATH=$PATH:/bin
COPY --from=build /rosetta/rosetta-cli /bin/rosetta-cli
COPY --from=build /simd/simapp/simd/simd /bin/simd COPY --from=build /simd/simapp/simd/simd /bin/simd
WORKDIR /rosetta WORKDIR /rosetta

View File

@ -1,18 +0,0 @@
FROM golang:1.19-alpine as build
RUN apk add git gcc libc-dev --no-cache
ARG ROSETTA_VERSION="v0.7.3"
# build rosetta CLI
WORKDIR /rosetta
RUN git clone https://github.com/coinbase/rosetta-cli .
RUN git checkout tags/$ROSETTA_VERSION
RUN go build -o rosetta-cli ./main.go
FROM alpine
RUN apk add gcc libc-dev python3 --no-cache
ENV PATH=$PATH:/bin
COPY --from=build /rosetta/rosetta-cli /bin/rosetta-cli