Skip to content

Commit

Permalink
test: integrate rosetta-cli into rosetta-ci (#13785)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
JulianToledano and julienrbrt committed Nov 8, 2022
1 parent b4b4e4a commit a3e1b99
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 26 deletions.
7 changes: 2 additions & 5 deletions contrib/rosetta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@ Contains the required files to set up rosetta cli and make it work against its w

## 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.

## 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.
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.

## Notes

Expand Down
2 changes: 1 addition & 1 deletion contrib/rosetta/configuration/rosetta.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"bootstrap_balances": "bootstrap.json",
"interesting_accounts": "",
"reconciliation_disabled": false,
"inactive_discrepency_search_disabled": false,
"inactive_discrepancy_search_disabled": false,
"balance_tracking_disabled": false,
"coin_tracking_disabled": false,
"end_conditions": {
Expand Down
2 changes: 1 addition & 1 deletion contrib/rosetta/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
- 8080

test_rosetta:
image: tendermintdev/rosetta-cli:v0.6.7
image: rosetta-ci:latest
volumes:
- ./configuration:/rosetta/config:z
command: ["./config/run_tests.sh"]
Expand Down
11 changes: 10 additions & 1 deletion contrib/rosetta/rosetta-ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
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
WORKDIR /node
Expand All @@ -17,6 +25,7 @@ RUN apk add gcc git libc-dev python3 --no-cache

ENV PATH=$PATH:/bin

COPY --from=build /rosetta/rosetta-cli /bin/rosetta-cli
COPY --from=build /simd/simapp/simd/simd /bin/simd

WORKDIR /rosetta
Expand Down
18 changes: 0 additions & 18 deletions contrib/rosetta/rosetta-cli/Dockerfile

This file was deleted.

0 comments on commit a3e1b99

Please sign in to comment.