From fa92380af05219cc604ddb1a9a9fadcfe76097c8 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 4 Apr 2018 12:26:34 +0200 Subject: Add scripts to build the eth binary via docker. --- scripts/cpp-ethereum/build.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/cpp-ethereum/build.sh (limited to 'scripts/cpp-ethereum/build.sh') diff --git a/scripts/cpp-ethereum/build.sh b/scripts/cpp-ethereum/build.sh new file mode 100755 index 00000000..23ed1290 --- /dev/null +++ b/scripts/cpp-ethereum/build.sh @@ -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 \ No newline at end of file -- cgit v1.2.3