prepare_build.sh 772 B

1234567891011121314151617
  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. export RAKE_COMPILER_DOCK_IMAGE=grpctesting/rake-compiler-dock_53c22085d091183c528303791e7771359f699bcf
  11. # All artifacts come here
  12. mkdir artifacts
  13. export ARTIFACT_DIR=$(pwd)/artifacts