2018-08-24 05:55:54 +02:00
|
|
|
## Usage
|
2017-05-23 12:25:41 +02:00
|
|
|
|
2020-03-25 17:16:51 +01:00
|
|
|
```docker build -f docker/ubuntu/Dockerfile --tag ethcore/openethereum:branch_or_tag_name .```
|
2018-08-24 05:55:54 +02:00
|
|
|
|
|
|
|
## Usage - CentOS
|
|
|
|
|
2020-03-25 17:16:51 +01:00
|
|
|
Builds a lightweight non-root OpenEthereum docker image:
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|
2020-03-25 17:16:51 +01:00
|
|
|
git clone https://github.com/openethereum/openethereum.git
|
|
|
|
cd openethereum
|
2019-10-31 14:59:51 +01:00
|
|
|
./scripts/docker/centos/build.sh
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Fully customised build:
|
|
|
|
```
|
2020-03-25 17:16:51 +01:00
|
|
|
OPENETHEREUM_IMAGE_REPO=my-personal/openethereum \
|
|
|
|
OPENETHEREUM_BUILDER_IMAGE_TAG=build-latest \
|
|
|
|
OPENETHEREUM_RUNNER_IMAGE_TAG=centos-openethereum-experimental \
|
2019-10-31 14:59:51 +01:00
|
|
|
./scripts/docker/centos/build.sh
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Default values:
|
|
|
|
```
|
|
|
|
# The image name
|
2020-03-25 17:16:51 +01:00
|
|
|
OPENETHEREUM_IMAGE_REPO - openethereum/openethereum
|
2018-08-24 05:55:54 +02:00
|
|
|
|
|
|
|
# The tag to be used for builder image, git commit sha will be appended
|
2020-03-25 17:16:51 +01:00
|
|
|
OPENETHEREUM_BUILDER_IMAGE_TAG - build
|
2018-08-24 05:55:54 +02:00
|
|
|
|
|
|
|
# The tag to be used for runner image
|
2020-03-25 17:16:51 +01:00
|
|
|
OPENETHEREUM_RUNNER_IMAGE_TAG - latest
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
All default ports you might use will be exposed:
|
|
|
|
```
|
2020-02-29 11:57:43 +01:00
|
|
|
# secret
|
|
|
|
# store ui rpc ws listener discovery
|
2018-08-24 05:55:54 +02:00
|
|
|
# ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
2020-02-29 11:57:43 +01:00
|
|
|
EXPOSE 8082 8083 8180 8545 8546 30303/tcp 30303/udp
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|