prepare_build.sh 668 B

12345678910111213141516
  1. #!/bin/bash
  2. # Move docker's storage location to scratch disk so we don't run out of space.
  3. echo 'DOCKER_OPTS="${DOCKER_OPTS} --graph=/tmpfs/docker"' | sudo tee --append /etc/default/docker
  4. # Use container registry mirror for pulling docker images (should make downloads faster)
  5. # See https://cloud.google.com/container-registry/docs/using-dockerhub-mirroring
  6. echo 'DOCKER_OPTS="${DOCKER_OPTS} --registry-mirror=https://mirror.gcr.io"' | sudo tee --append /etc/default/docker
  7. sudo service docker restart
  8. # Download Docker images from DockerHub
  9. export DOCKERHUB_ORGANIZATION=grpctesting
  10. # All artifacts come here
  11. mkdir artifacts
  12. export ARTIFACT_DIR=$(pwd)/artifacts