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

Docker centos build fails #11224

Closed
luosprz opened this issue Oct 31, 2019 · 0 comments · Fixed by #11226
Closed

Docker centos build fails #11224

luosprz opened this issue Oct 31, 2019 · 0 comments · Fixed by #11226
Labels
M0-build 🏗 Building and build system.

Comments

@luosprz
Copy link
Contributor

luosprz commented Oct 31, 2019

  • Parity Ethereum version: 2.7.0-nightly
  • Operating system: Linux
  • Installation: docker built from source

I'm trying to build the centos docker version of Parity, based on the template in the master branch repo: https://github.com/paritytech/parity-ethereum/tree/master/scripts/docker.

The README.md seems to be outdated after move docker directory to scripts directory. After run the build.sh in the right directory:

git clone https://github.com/paritytech/parity-ethereum.git
cd parity-ethereum/scripts
./docker/centos/build.sh

I got the following cmake error:

cmake version 3.12.0

CMake suite maintained and supported by Kitware (kitware.com/cmake).
error: could not find `Cargo.toml` in `/build/parity-ethereum` or any parent directory
The command '/bin/sh -c yum -y update &&     yum install -y systemd-devel git make gcc-c++ gcc file binutils &&     curl -L "https://cmake.org/files/v3.12/cmake-3.12.0-Linux-x86_64.tar.gz" -o cmake.tar.gz &&     tar -xzf cmake.tar.gz &&     cp -r cmake-3.12.0-Linux-x86_64/* /usr/ &&     curl https://sh.rustup.rs -sSf | sh -s -- -y &&     PATH=/root/.cargo/bin:$PATH &&     RUST_BACKTRACE=1 &&     rustc -vV &&     cargo -V &&     gcc -v &&     g++ -v &&     cmake --version &&     cd parity-ethereum &&     cargo build --verbose --release --features final &&     strip /build/parity-ethereum/target/release/parity &&     file /build/parity-ethereum/target/release/parity' returned a non-zero code: 101

This is because the Dockerfile.build is adding from the scripts directory instead from the previous path with the parity source code.

How to fix

Update build.sh shell script replacing the old path docker/centos to the new one scripts/docker/centos:

sed -i 's,docker/centos,scripts/docker/centos,g' build.sh

Run from parity-ethereum directory:

git clone https://github.com/paritytech/parity-ethereum.git
cd parity-ethereum/
./scripts/docker/centos/build.sh
luosprz added a commit to luosprz/parity-ethereum that referenced this issue Oct 31, 2019
  - Update shell script to build docker centos
  image with the new path.
  - Update REAMDE.md with build instructions.

Closes [openethereum#11224](openethereum#11224)
@jam10o-new jam10o-new added the M0-build 🏗 Building and build system. label Oct 31, 2019
niklasad1 pushed a commit that referenced this issue Oct 31, 2019
- Update shell script to build docker centos
  image with the new path.
  - Update REAMDE.md with build instructions.

Closes [#11224](#11224)
niklasad1 pushed a commit that referenced this issue Nov 5, 2019
- Update shell script to build docker centos
  image with the new path.
  - Update REAMDE.md with build instructions.

Closes [#11224](#11224)
s3krit pushed a commit that referenced this issue Nov 6, 2019
- Update shell script to build docker centos
  image with the new path.
  - Update REAMDE.md with build instructions.

Closes [#11224](#11224)
dvdplm pushed a commit that referenced this issue Nov 7, 2019
- Update shell script to build docker centos
  image with the new path.
  - Update REAMDE.md with build instructions.

Closes [#11224](#11224)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
M0-build 🏗 Building and build system.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants