Dockerized LLVM (#1914)

Optionally build with dockererized custom llvm
This commit is contained in:
jackcmay
2018-11-28 14:41:53 -08:00
committed by GitHub
parent 55993ef0ce
commit 0c091c1b24
14 changed files with 137 additions and 8 deletions

43
sdk/docker-solana/build.sh Executable file
View File

@ -0,0 +1,43 @@
#!/usr/bin/env bash
set -ex
cd "$(dirname "$0")"
eval "$(../channel-info.sh)"
if [[ $BUILDKITE_BRANCH = "$STABLE_CHANNEL" ]]; then
CHANNEL=stable
elif [[ $BUILDKITE_BRANCH = "$EDGE_CHANNEL" ]]; then
CHANNEL=edge
elif [[ $BUILDKITE_BRANCH = "$BETA_CHANNEL" ]]; then
CHANNEL=beta
fi
if [[ -z $CHANNEL ]]; then
echo Unable to determine channel to publish into, exiting.
exit 0
fi
rm -rf usr/
../../ci/docker-run.sh solanalabs/rust:1.30.1 bash -c "
set -ex
cargo install --path drone --root sdk/docker-solana/usr
cargo install --path . --root sdk/docker-solana/usr
"
cp -f entrypoint.sh usr/bin/solana-entrypoint.sh
../../scripts/install-native-programs.sh usr/bin/
docker build -t solanalabs/solana:$CHANNEL .
maybeEcho=
if [[ -z $CI ]]; then
echo "Not CI, skipping |docker push|"
maybeEcho="echo"
else
(
set +x
if [[ -n $DOCKER_PASSWORD && -n $DOCKER_USERNAME ]]; then
echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
fi
)
fi
$maybeEcho docker push solanalabs/solana:$CHANNEL