aboutsummaryrefslogtreecommitdiff
path: root/kokoro/release/ruby/linux/prepare_build.sh
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2018-07-11 16:25:55 -0700
committerFeng Xiao <xfxyjwf@gmail.com>2018-07-11 18:09:37 -0700
commite529d162838f747362c123ec10e87ebe3970c677 (patch)
treea92f5abb10a6ae1ec4108d5c98e2e3f528e3696e /kokoro/release/ruby/linux/prepare_build.sh
parent82019f90fff5c44477f91084c84b24989a93df7a (diff)
downloadprotobuf-e529d162838f747362c123ec10e87ebe3970c677.tar.gz
protobuf-e529d162838f747362c123ec10e87ebe3970c677.tar.bz2
protobuf-e529d162838f747362c123ec10e87ebe3970c677.zip
Make ruby release configs consistent with protoc.
Diffstat (limited to 'kokoro/release/ruby/linux/prepare_build.sh')
-rwxr-xr-xkokoro/release/ruby/linux/prepare_build.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/kokoro/release/ruby/linux/prepare_build.sh b/kokoro/release/ruby/linux/prepare_build.sh
new file mode 100755
index 00000000..d3ff8764
--- /dev/null
+++ b/kokoro/release/ruby/linux/prepare_build.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# Move docker's storage location to scratch disk so we don't run out of space.
+echo 'DOCKER_OPTS="${DOCKER_OPTS} --graph=/tmpfs/docker"' | sudo tee --append /etc/default/docker
+# Use container registry mirror for pulling docker images (should make downloads faster)
+# See https://cloud.google.com/container-registry/docs/using-dockerhub-mirroring
+echo 'DOCKER_OPTS="${DOCKER_OPTS} --registry-mirror=https://mirror.gcr.io"' | sudo tee --append /etc/default/docker
+sudo service docker restart
+
+# Download Docker images from DockerHub
+export DOCKERHUB_ORGANIZATION=grpctesting
+
+# All artifacts come here
+mkdir artifacts
+export ARTIFACT_DIR=$(pwd)/artifacts
+