Skip to content

Instantly share code, notes, and snippets.

@andrwng
Last active July 19, 2018 02:30
Show Gist options
  • Save andrwng/ed1afb533c96b7ec8dd62f81d26f550d to your computer and use it in GitHub Desktop.
Save andrwng/ed1afb533c96b7ec8dd62f81d26f550d to your computer and use it in GitHub Desktop.
# This script assumes you've populated the current directory with a Kudu repository.
# First, get rid of any crummy old docker installations lying around and install docker-ce.
rm /etc/systemd/system/docker.service.d/docker.conf || true
apt-get remove docker docker-engine docker.io
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce
# Now populate thirdparty with pre-built thirdparty.
docker pull docker-registry.infra.cloudera.com/kudu/centos6.6/cloud:thirdparty
docker run --name thirdparty docker-registry.infra.cloudera.com/kudu/centos6.6/cloud:thirdparty /bin/true
docker cp thirdparty:/kudu/thirdparty/build thirdparty
docker cp thirdparty:/kudu/thirdparty/installed thirdparty
docker cp thirdparty:/kudu/thirdparty/src thirdparty
docker cp thirdparty:/kudu/thirdparty/.build-hash.common thirdparty
docker cp thirdparty:/kudu/thirdparty/.build-hash.uninstrumented
ln -s build/llvm-6.0.0 clang-toolchain
# Finally, build and test Kudu.
docker run -it -v "$(pwd):/kudu" -w /kudu docker-registry.infra.cloudera.com/kudu/centos6.6/cloud:prereqs build-support/jenkins/build-and-test.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment