-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
corentingiraud
committed
Jan 17, 2020
1 parent
922d6f3
commit 8654213
Showing
3 changed files
with
37 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Ethereum experimentations | ||
|
||
Some experimentation in the ethereum ecosystem. This repo include a team project for OT4 course in INSA Lyon. | ||
|
||
## Build docker image from Dockerfile | ||
|
||
`docker build . -t ethereum-tp` | ||
|
||
It will create a new private blackchain called `chaine1T` (chaine d'inté ;-) ) in the `~/.ethereum` directory. | ||
|
||
## Run a container in detach mode | ||
|
||
Lunch the following command from root: | ||
|
||
`docker run -itd --name ethereum-tp -v $(pwd)/java-project:/root/java-project ethereum-tp /bin/bash` | ||
|
||
## Enter in the container | ||
|
||
To obtain bash command line interface inside the container: | ||
`docker exec -it ethereum-tp /bin/bash` | ||
|
||
## Create new ETH account | ||
|
||
From `~/.ethereum` directory: | ||
``` | ||
cd ~/.ethereum/ | ||
geth account new | ||
``` | ||
|
||
## Lunch a node with mining | ||
|
||
From the container command line (cf `Enter in the container`): | ||
|
||
`geth --datadir chaine1T --rpcapi personnal,db,eth,net,web3 --rpc --mine --minerthreads=1 console` |