klaytn / rosetta-klaytn

Apache License 2.0
4 stars 6 forks source link

Modified Dockerfile and applied to Makefile #60

Closed jimni1222 closed 2 years ago

jimni1222 commented 2 years ago

I updated Dockerfile to make docker image for rosetta-klaytn.

I used Postman to test whether it runs normally in Online and Offline, respectively, on the mainnet and testnet. Here you can see details about a few endpoints tested.

You can build docker image with below command

docker build --platform=linux/amd64 -t rosetta-klaytn:latest .

You can run docker container with below command

docker run --platform linux/amd64 --rm --ulimit "nofile=100000:100000" -e "MODE=ONLINE" -e "NETWORK=TESTNET" -e "PORT=8080" -e "KEN=http://x.x.x.x:8551" -p 8080:8080 -p 30303:30303 rosetta-klaytn:latest

docker run --platform linux/amd64 --rm --ulimit "nofile=100000:100000" -e "MODE=OFFLINE" -e "NETWORK=TESTNET" -e "PORT=8081" -e "KEN=http://x.x.x.x:8551" -p 8081:8081 rosetta-klaytn:latest

You can modify "MODE=ONLINE" to "MODE=OFFLINE" and "NETWORK=TESTNET" to "NETWORK=MAINNET".

You need to use ecsign of the SDK if you want to generate a signature to combine.

closes https://github.com/klaytn/rosetta-klaytn/issues/17