diff options
author | chriseth <chris@ethereum.org> | 2018-04-06 01:05:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-06 01:05:41 +0800 |
commit | 309a90bb5da06a5f54cd976b7da647e3bfece2e3 (patch) | |
tree | 64b1d7533569be2b218b618fc4b938a823211d08 /scripts | |
parent | 543e1e19c73776939bb9a6c244b9749a33f3d61b (diff) | |
parent | 6a2c30e4ffacc4f0cdee321d76cf3f92f41bd25b (diff) | |
download | dexon-solidity-309a90bb5da06a5f54cd976b7da647e3bfece2e3.tar.gz dexon-solidity-309a90bb5da06a5f54cd976b7da647e3bfece2e3.tar.zst dexon-solidity-309a90bb5da06a5f54cd976b7da647e3bfece2e3.zip |
Merge pull request #3818 from ethereum/eth_docker
Add scripts to build the eth binary via docker.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/cpp-ethereum/eth_trusty.docker | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/cpp-ethereum/eth_trusty.docker b/scripts/cpp-ethereum/eth_trusty.docker index 0c4d7a02..5cfb59f7 100644 --- a/scripts/cpp-ethereum/eth_trusty.docker +++ b/scripts/cpp-ethereum/eth_trusty.docker @@ -1,7 +1,13 @@ FROM ubuntu:trusty -RUN apt update -RUN apt -y install libleveldb-dev cmake g++ git +RUN apt-get update +RUN apt-get -y install software-properties-common python-software-properties +RUN add-apt-repository ppa:ubuntu-toolchain-r/test +RUN apt-get update +RUN apt-get -y install gcc libleveldb-dev git curl make gcc-7 g++-7 +RUN ln -sf /usr/bin/gcc-7 /usr/bin/gcc +RUN ln -sf /usr/bin/g++-7 /usr/bin/g++ RUN git clone --recursive https://github.com/ethereum/cpp-ethereum --branch develop --single-branch --depth 1 -RUN mkdir /build && cd /build && cmake /cpp-ethereum -DCMAKE_BUILD_TYPE=RelWithDebInfo -DTOOLS=Off -DTESTS=Off +RUN ./cpp-ethereum/scripts/install_cmake.sh +RUN mkdir /build && cd /build && ~/.local/bin/cmake /cpp-ethereum -DCMAKE_BUILD_TYPE=RelWithDebInfo -DTOOLS=Off -DTESTS=Off RUN cd /build && make eth |