Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fooock/ropsten-miner-docker
Setup Ethereum Ropsten miner network using Docker
https://github.com/fooock/ropsten-miner-docker
deployment docker ethereum ethereum-miner ropsten
Last synced: 2 months ago
JSON representation
Setup Ethereum Ropsten miner network using Docker
- Host: GitHub
- URL: https://github.com/fooock/ropsten-miner-docker
- Owner: fooock
- Created: 2018-06-25T17:10:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T12:41:10.000Z (almost 3 years ago)
- Last Synced: 2024-10-10T18:44:46.618Z (3 months ago)
- Topics: deployment, docker, ethereum, ethereum-miner, ropsten
- Language: Makefile
- Size: 8.79 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ethereum Ropsten Docker miner
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)Setup Ethereum Ropster miner using Docker. You can customize the resources used by the container.
## Requirements
You only need:
* [Docker](https://docs.docker.com/)
* MakeIf you have `Ubuntu`, to install make simply use:
```bash
$ sudo apt-get install make
```## Build params
You can customize multiple params. See next table.| Param | Description | Default value |
|--------------- |--------------------------------------------------------------------- |---------------------------------------------- |
| `ETHER_BASE` | Public address for block mining rewards | `0x33C425D7E08aa105a4520f78b750b30AC6FF85CD` |
| `MEMORY` | The maximum amount of memory the container can use | `4g` |
| `SWAP_MEMORY` | The amount of memory this container is allowed to swap to disk | `6gb` |
| `CPUS` | Specify how much of the available CPU resources a container can use | `2` |>Note: Swap memory is equal to `$SWAP_MEMORY` - `$MEMORY`. Using the default values, the swap memory is 2g.
## Tasks
You can execute these tasks:| **Name** | **Description** |
|---------- |--------------------------------------- |
| `build` | Pull the Docker image |
| `start` | Start the node in the Ropsten network |
| `shell` | Open an interactive Geth console |## Start miner
You can start the miner with the default values```bash
$ make start
```This command downloads the image `client-go` and start it to mine in the `Ropsten network`. For more detail see the [Makefile](Makefile). If you want to
customize the container resources, you just have to overwrite the variables. For example, if you want to limit the cpu to 4, then:```bash
$ CPUS=4 make start
```