mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add scripts to build the eth binary via docker.
This commit is contained in:
parent
c63efebd45
commit
fa92380af0
17
scripts/cpp-ethereum/build.sh
Executable file
17
scripts/cpp-ethereum/build.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Script to build the eth binary from latest develop
|
||||
# for ubuntu trusty and ubuntu artful.
|
||||
# Requires docker.
|
||||
|
||||
set -e
|
||||
|
||||
REPO_ROOT="$(dirname "$0")"/../..
|
||||
|
||||
for rel in artful trusty
|
||||
do
|
||||
docker build -t eth_$rel -f "$REPO_ROOT"/scripts/cpp-ethereum/eth_$rel.docker .
|
||||
tmp_container=$(docker create eth_$rel sh)
|
||||
echo "Built eth ($rel) at $REPO_ROOT/build/eth_$rel"
|
||||
docker cp ${tmp_container}:/build/eth/eth "$REPO_ROOT"/build/eth_$rel
|
||||
done
|
7
scripts/cpp-ethereum/eth_artful.docker
Normal file
7
scripts/cpp-ethereum/eth_artful.docker
Normal file
@ -0,0 +1,7 @@
|
||||
FROM ubuntu:artful
|
||||
|
||||
RUN apt update
|
||||
RUN apt -y install libleveldb-dev cmake g++ git
|
||||
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 cd /build && make eth
|
7
scripts/cpp-ethereum/eth_trusty.docker
Normal file
7
scripts/cpp-ethereum/eth_trusty.docker
Normal file
@ -0,0 +1,7 @@
|
||||
FROM ubuntu:trusty
|
||||
|
||||
RUN apt update
|
||||
RUN apt -y install libleveldb-dev cmake g++ git
|
||||
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 cd /build && make eth
|
Loading…
Reference in New Issue
Block a user