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

Docker centos build fails #11224

@luosprz

Description

@luosprz
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    M0-build 🏗Building and build system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions