Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Local Testnet command #378

Merged
merged 45 commits into from
Jul 31, 2020
Merged

Local Testnet command #378

merged 45 commits into from
Jul 31, 2020

Conversation

fedekunze
Copy link
Contributor

@fedekunze fedekunze commented Jul 7, 2020

Closes: #347

Description

Starts an n nodes local testnet.

# start 4 node localtestnet with docker running
make localnet-start

#stop the testnet using
make localnet-stop
  • fix docker
  • docker installation docs
  • multi-node local testnet docs

For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@codecov
Copy link

codecov bot commented Jul 7, 2020

Codecov Report

❗ No coverage uploaded for pull request base (development@0dc45bc). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##             development     #378   +/-   ##
==============================================
  Coverage               ?   70.62%           
==============================================
  Files                  ?       37           
  Lines                  ?     2427           
  Branches               ?        0           
==============================================
  Hits                   ?     1714           
  Misses                 ?      587           
  Partials               ?      126           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0dc45bc...0f776c0. Read the comment docs.

Dockerfile Outdated Show resolved Hide resolved
docker-compose.yml Outdated Show resolved Hide resolved
Base automatically changed from fix-non-determinism to development July 13, 2020 20:01
@fedekunze fedekunze mentioned this pull request Jul 15, 2020
@fedekunze fedekunze marked this pull request as ready for review July 21, 2020 09:45
@fedekunze fedekunze requested a review from noot as a code owner July 21, 2020 09:45
@fedekunze fedekunze added documentation Improvements or additions to documentation Status: Needs Review labels Jul 21, 2020
### Build ###
###############################################################################

build: go.sum
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@J-Thompson12 can you test these commands on your machine? 🙏

Comment on lines +63 to +74
docker:
docker build -t ${DOCKER_IMAGE}:${DOCKER_TAG} .
docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:latest
docker tag ${DOCKER_IMAGE}:${DOCKER_TAG} ${DOCKER_IMAGE}:${COMMIT_HASH}
# update old container
docker rm ethermint
# create a new container from the latest image
docker create --name ethermint -t -i cosmos/ethermint:latest ethermint
# move the binaries to the ./build directory
mkdir -p ./build/
docker cp ethermint:/usr/bin/emintd ./build/ ; \
docker cp ethermint:/usr/bin/emintcli ./build/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@araskachoi this could possibly be improved

Copy link
Contributor

@noot noot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me!

Dockerfile Outdated Show resolved Hide resolved
@fedekunze fedekunze merged commit 375a7a0 into development Jul 31, 2020
@fedekunze fedekunze deleted the testnet branch July 31, 2020 21:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation Status: Needs Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to build Multi-node about ethermint?
6 participants