2018-08-24 05:55:54 +02:00
|
|
|
## Usage
|
2017-05-23 12:25:41 +02:00
|
|
|
|
|
|
|
```docker build -f docker/ubuntu/Dockerfile --tag ethcore/parity:branch_or_tag_name .```
|
2018-08-24 05:55:54 +02:00
|
|
|
|
|
|
|
## Usage - CentOS
|
|
|
|
|
|
|
|
Builds a lightweight non-root Parity docker image:
|
|
|
|
```
|
|
|
|
git clone https://github.com/paritytech/parity-ethereum.git
|
|
|
|
cd parity-ethereum
|
2019-11-11 21:57:38 +01:00
|
|
|
./scripts/docker/centos/build.sh
|
2018-08-24 05:55:54 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Fully customised build:
|
|
|
|
```
|
|
|
|
PARITY_IMAGE_REPO=my-personal/parity \
|
|
|
|
PARITY_BUILDER_IMAGE_TAG=build-latest \
|
|
|
|
PARITY_RUNNER_IMAGE_TAG=centos-parity-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
|
|
|
|
PARITY_IMAGE_REPO - parity/parity
|
|
|
|
|
|
|
|
# The tag to be used for builder image, git commit sha will be appended
|
|
|
|
PARITY_BUILDER_IMAGE_TAG - build
|
|
|
|
|
|
|
|
# The tag to be used for runner image
|
|
|
|
PARITY_RUNNER_IMAGE_TAG - latest
|
|
|
|
```
|
|
|
|
|
|
|
|
All default ports you might use will be exposed:
|
|
|
|
```
|
|
|
|
# secret
|
|
|
|
# ipfs store ui rpc ws listener discovery
|
|
|
|
# ↓ ↓ ↓ ↓ ↓ ↓ ↓
|
|
|
|
EXPOSE 5001 8082 8083 8180 8545 8546 30303/tcp 30303/udp
|
|
|
|
```
|