Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 6b17e32

Browse files
luosprzniklasad1
authored andcommitted
Fix docker centos build (#11226)
- Update shell script to build docker centos image with the new path. - Update REAMDE.md with build instructions. Closes [#11224](#11224)
1 parent f743829 commit 6b17e32

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

scripts/docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Builds a lightweight non-root Parity docker image:
88
```
99
git clone https://github.com/paritytech/parity-ethereum.git
1010
cd parity-ethereum
11-
./docker/centos/build.sh
11+
./scripts/docker/centos/build.sh
1212
```
1313

1414
Fully customised build:
1515
```
1616
PARITY_IMAGE_REPO=my-personal/parity \
1717
PARITY_BUILDER_IMAGE_TAG=build-latest \
1818
PARITY_RUNNER_IMAGE_TAG=centos-parity-experimental \
19-
./docker/centos/build.sh
19+
./scripts/docker/centos/build.sh
2020
```
2121

2222
Default values:

scripts/docker/centos/build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ PARITY_BUILDER_IMAGE_TAG=${PARITY_BUILDER_IMAGE_TAG:-build}
88
PARITY_RUNNER_IMAGE_TAG=${PARITY_RUNNER_IMAGE_TAG:-latest}
99

1010
echo Building $PARITY_IMAGE_REPO:$PARITY_BUILDER_IMAGE_TAG-$(git log -1 --format="%H")
11-
docker build --no-cache -t $PARITY_IMAGE_REPO:$PARITY_BUILDER_IMAGE_TAG-$(git log -1 --format="%H") . -f docker/centos/Dockerfile.build
11+
docker build --no-cache -t $PARITY_IMAGE_REPO:$PARITY_BUILDER_IMAGE_TAG-$(git log -1 --format="%H") . -f scripts/docker/centos/Dockerfile.build
1212

1313
echo Creating $PARITY_BUILDER_IMAGE_TAG-$(git log -1 --format="%H"), extracting binary
1414
docker create --name extract $PARITY_IMAGE_REPO:$PARITY_BUILDER_IMAGE_TAG-$(git log -1 --format="%H")
15-
mkdir docker/centos/parity
16-
docker cp extract:/build/parity-ethereum/target/release/parity docker/centos/parity
15+
mkdir scripts/docker/centos/parity
16+
docker cp extract:/build/parity-ethereum/target/release/parity scripts/docker/centos/parity
1717

1818
echo Building $PARITY_IMAGE_REPO:$PARITY_RUNNER_IMAGE_TAG
19-
docker build --no-cache -t $PARITY_IMAGE_REPO:$PARITY_RUNNER_IMAGE_TAG docker/centos/ -f docker/centos/Dockerfile
19+
docker build --no-cache -t $PARITY_IMAGE_REPO:$PARITY_RUNNER_IMAGE_TAG scripts/docker/centos/ -f scripts/docker/centos/Dockerfile
2020

2121
echo Cleaning up ...
22-
rm -rf docker/centos/parity
22+
rm -rf scripts/docker/centos/parity
2323
docker rm -f extract
2424
docker rmi -f $PARITY_IMAGE_REPO:$PARITY_BUILDER_IMAGE_TAG-$(git log -1 --format="%H")
2525

0 commit comments

Comments
 (0)