2018-08-24 05:55:54 +02:00
|
|
|
## Usage
|
2017-05-23 12:25:41 +02:00
|
|
|
|
2020-09-22 14:53:52 +02: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-09-22 14:53:52 +02:00
|
|
|
Builds a lightweight non-root OpenEthereum docker image:
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|
2020-09-22 14:53:52 +02:00
|
|
|
git clone https://github.com/openethereum/openethereum.git
|
|
|
|
cd openethereum
|
2019-11-11 21:57:38 +01:00
|
|
|
./scripts/docker/centos/build.sh
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Fully customised build:
|
|
|
|
```
|
2020-09-22 14:53:52 +02:00
|
|
|
OPENETHEREUM_IMAGE_REPO=my-personal/openethereum \
|
|
|
|
OPENETHEREUM_BUILDER_IMAGE_TAG=build-latest \
|
|
|
|
OPENETHEREUM_RUNNER_IMAGE_TAG=centos-openethereum-experimental \
|
2019-11-11 21:57:38 +01:00
|
|
|
./scripts/docker/centos/build.sh
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Default values:
|
|
|
|
```
|
|
|
|
# The image name
|
2020-09-22 14:53:52 +02: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-09-22 14:53:52 +02:00
|
|
|
OPENETHEREUM_BUILDER_IMAGE_TAG - build
|
2018-08-24 05:55:54 +02:00
|
|
|
|
|
|
|
# The tag to be used for runner image
|
2020-09-22 14:53:52 +02:00
|
|
|
OPENETHEREUM_RUNNER_IMAGE_TAG - latest
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
All default ports you might use will be exposed:
|
|
|
|
```
|
2020-08-17 12:47:53 +02:00
|
|
|
# secret
|
|
|
|
# store ui rpc ws listener discovery
|
2020-09-22 14:53:52 +02:00
|
|
|
# ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
2020-08-17 12:47:53 +02:00
|
|
|
EXPOSE 8082 8083 8180 8545 8546 30303/tcp 30303/udp
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|